4
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で複数ユーザーを使い分ける場合の Permission-denied 403 の対処方法

Last updated at Posted at 2018-10-21

GitHubで複数ユーザーを使い分ける場合の Permission-denied 403 の対処方法

GitHubで複数ユーザーを使い分けている場合において、gitでpushするときに以下のエラーが出る場合の解決方法について記述します。

remote: Permission to ユーザー名1/リポジトリ名 denied to ユーザー名2.

git pushでpermission deniedされ403エラーになりました。
解決方法は以下の通りです。

Mac版の解決方法

以下の情報が参考になりました。
gitでpushするときに"remote: Permission to ユーザー名1/リポジトリ名 denied to ユーザー名2."と表示され、pushできないときの対処法。 - Qiita

Windows版の解決方法

以下の方法で解決しました。

  1. Windowsの「コントロールパネル→ユーザーアカウント→資格情報マネージャー」
  2. 「汎用資格情報/Windows資格情報」の項目にあるgit:https://github.comの項目を削除
4
2
2

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
4
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?