git:fatal:无法从远程存储库读取 [英] git: fatal: Could not read from remote repository

查看:796
本文介绍了git:fatal:无法从远程存储库读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆