0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

remote: Repository not found. Git Credential Manager使用

Posted at

事象

別アカウントに切り替えて作業をした後に、元のアカウントに戻すとpushできなくなった。gitへのログインは2段階認証を適用するためGit Credential Managerを利用している。

$ git push origin dev 
remote: Repository not found.
fatal: repository 'https://github.com/<ユーザ名>/<リポジトリ名>.git/' not found

結論

macOSのキーチェーン>ログインからgitの認証情報を削除する。未検証ですが、Windowsでは資格情報マネージャーで同様の操作で解決可能と思われる。

image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?