git:fatal:无法从远程存储库读取 [英] git: fatal: Could not read from remote repository
问题描述
我正在尝试将 http://danielmiessler.com/study/git/#website 我已经到了指令的最后一步:git push website + master:refs / heads / master
$ b
我正在使用win7中的git ming32命令行
$ git push website + master:refs / heads / master
Bill@***.com的密码:
由198.91.80.3关闭的连接
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并存在存储库。
这里的一个问题可能是该程序正在寻找Bill@***.com。当我通过SSH连接到我的网站时,我有一个不同的用户名(可以说'abc')。所以也许这应该是abc@***.com。如果是这样,我不知道如何改变这个,或者如果我可以推下一个别名
您可以指定用户名SSH应作为远程URL的一部分发送到远程系统。在远程主机名之前放置用户名,后跟一个 @
。
git remote set-url website abc @ ***。com:path / to / repo
I am trying to set git up with http://danielmiessler.com/study/git/#website to manage my site.
I have gotten to the last step in the instructions: git push website +master:refs/heads/master
I am working using the git ming32 command line in win7
$ 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.
One problem here may be that the program is looking for Bill@***.com. when I connect via ssh to my site I have a different username( lets say 'abc'). so maybe this should be abc@***.com. If so I don't know how to change this or if I can push under an alias
You can specify the username that SSH should send to the remote system as part of your remote's URL. Put the username, followed by an @
, before the remote hostname.
git remote set-url website abc@***.com:path/to/repo
这篇关于git:fatal:无法从远程存储库读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!