我试图设置git与http://danielmiessler.com/study/git/#website来管理我的网站。

我已经到了指令的最后一步:git push website +master:refs/heads/master

我正在win7中使用git ming32命令行工作

$ git push website +master:refs/heads/master
Bill@***.com's password:
Connection closed by 198.91.80.3
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

这里的一个问题可能是程序正在寻找bill@* **.com。当我通过ssh连接到我的网站,我有一个不同的用户名(让我们说'abc')。也许这个应该是abc@***。com。如果是这样,我不知道如何改变这一点,或者如果我可以推下一个别名


当前回答

我也遇到了同样的问题,通过更新到最新的git版本解决了这个问题

其他回答

我也犯了同样的错误。 解决方案如下: 我已经在。git/config中更正了我的url。 刚刚从HTTPS克隆URL复制。大概是这样的:

url = https://github.com/*your*git*name*/*your*git*app*.git

它工作。

I would recommend to check all remotes you have configured with git remote -v If you had your repo configured to a remote that was deleted you will receive this error message: fatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists. Even when trying to push or pull to an other (existing) remote. So if you have a remote that was deleted, you can remove with git remote remove name-of-remote-to-remove and after that you can push or pull to your existing remotes without problems.

另一个解决方案:

有时这种情况发生在我身上是因为网络问题。我不完全理解根本问题,但是切换到不同的子网络或使用VPN可以解决这个问题

我遇到了同样的错误,但如果您再次传递命令,您将注意到提示:您确定要继续连接(是/否)?,然后输入“yes”,然后按回车键就可以解决了。

对于那些有此问题的私人远程回购。确保你在远程服务器上接受了Xcode协议:我们花了几周时间才找到这个解决方案

从命令行使用这个命令:sudo xcodebuild -license