【发布时间】:2011-08-02 10:40:01
【问题描述】:
当我尝试使用 Git 将我的应用程序推送到 GitHub 时,我得到以下信息:
$ git push origin master
Enter passphrase for key '/c/Users/Medicine - SWEng/.ssh/id_rsa':
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
运行git remote -v的输出:
$ git remote -v
heroku git@heroku.com:young-rain-273.git (fetch)
heroku git@heroku.com:young-rain-273.git (push)
origin git@github.com:SWEngineer7sample_app.git (fetch)
origin git@github.com:SWEngineer7sample_app.git (push)
sample git@github.com:SWEngineer/sample_app.git (fetch)
sample git@github.com:SWEngineer/sample_app.git (push)
我该如何解决这个问题?
【问题讨论】:
-
你能做一个
git remote -v并将输出粘贴到这里吗? -
可能是配置的网址有问题。 “git remote show origin”对于获取和推送 url 显示什么?
-
您似乎没有正确设置您的 RSA 密钥;检查 githut 设置文档;