我想要使用http://danielmiessler.com/study/git/#website来管理我的网站,现在正尝试设置git。
按照指示,我已经完成了最后一步: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/config
文件,确保一切都是正确的。对我来说,它的set-url和origin值是错误的。 - mixdev