0
私のgitユーザー名は 'new_username'です。通常はgit pullできます。ssh -T github.com - >応答メッセージの間違ったユーザー名
しかし、時々突然私は知らない原因を突き止めることはできません。
$ git pull
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解決には奇妙な実行フォローコマンドを使用します。
$ ssh -T github.com
Hi old_username! You've successfully authenticated, but GitHub does not provide shell access.
'old_username'は過去に使用された私の古いgitユーザー名です。
なぜですか?
のvim〜/ .gitconfig
[user]
name = new_username
email = [email protected]
そして今のために、私はプルgitのことができますどこでもMy Mac OSを再起動します。
GitHubのユーザー名は、Gitで設定した名前と同じではありません。 – 1615903