我安装了Git-1.7.9-preview20120201.exe,这是最受欢迎的版本,我使用默认设置进行设置。 然后我进入gitbash,并作为github帮助页面,一切都很好。现在我创建了一个名为Hello-World的仓库,后面是帮助页面:
http://help.github.com/create-a-repo/
当我做最后一步时:
git push -u origin master
发生错误:
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
我found a similar question,给出了这个解决方案:
所以对我来说有以下帮助:我重新安装了git,当向导询问使用什么ssh客户端时,我这次检查了OpenSSH!
现在我重新安装git,但是当我使用Git-1.7.9-preview20120201.exe重新安装git时,我无法选择OpenSSH方式。
你能否提前给我一些建议。
答案 0 :(得分:1)
检查您创建的git存储库中的远程设置:
% git remote -v
如果有拼写错误你就可以解决。
% git config remote.origin.url git://github.com/YOURNAME/REPONAME.git
配置存储在“.git / config”中。如果需要,你可以重写它。
% cat .git/config