git无法推送,无法找到存储库

问题描述:

我安装Git-1.7.9-preview20120201.exe这是最新版本,我使用默认设置进行安装。 然后我进入gitbash,并做github帮助页面,一切都很好。现在,我创建你好,世界跟随以下帮助页面,其名称的回购:git无法推送,无法找到存储库

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方式。

请给我一些建议,在此先感谢。

检查您的git仓库远程设置:

% git remote -v 

,你可以修复它是否有错字。

% git config remote.origin.url git://github.com/YOURNAME/REPONAME.git 

该配置存储在“.git/config”中。你可以直接重写它。

% cat .git/config 
+0

thanks Usagi,我会尝试 – diligent 2012-03-18 04:07:59

+0

hi Usagi,我做你的向导,接下来我应该做什么? – diligent 2012-03-18 04:11:33

+0

嗯,我以为你遇到了错误,因为在远程设置中有错误。问题可能在其他地方如果配置正确。 你可以尝试使用SSH连接到github服务器吗? github服务器不允许shell访问,但它可以测试ssh连接: %ssh [email protected] – 2012-03-18 05:48:54