3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

githubに複数アカウントが原因でpushできない問題解決メモ

Posted at

別のユーザーが紐付いている

fooでpushしたいのにhogeユーザーが紐付いている

$ git push origin master
remote: Permission to hoge/project.git denied to foo.
fatal: unable to access 'https://github.com/foo/project.git/': The requested URL returned error: 403

そんなときは。。。

$ git remote set-url origin git@github.com:foo/project.git
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?