$ git remote add origin git@github.com:lut/EvolutionApp.git
fatal: remote origin already exists.
$ git push -u origin master
fatal: 'EvolutionApp' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我的 key 添加成功
$ ssh -T git@github.com
Hi lut! You've successfully authenticated, but GitHub does not provide shell access.
Github 文章 https://help.github.com/articles/generating-ssh-keys/说“外壳访问”不应该成为问题?可能是什么问题?
最佳答案
尝试重新定义远程源的 ssh url:
git remote set-url origin git@github.com:lut/EvolutionApp.git
然后重试。
只有 git remote set-url
可以更改现有的远程 URL(与 git remote add
相反,添加 新 远程名称和 URL)
此处,问题是现有远程“origin
”EvolutionApp
的 URL:需要将其替换为有效的。
考虑到一开始就没有 HTTPS URL,使用 git config url."ssh://git@github.com/".insteadOf https://github.com/
不会有帮助。
关于Github Authentication Failed - ... GitHub不提供shell访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26953071/