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

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

问题描述

我正在尝试使用 http://danielmiessler.com/study/git/#website 设置 git管理我的网站.

I am trying to set git up with http://danielmiessler.com/study/git/#website to manage my site.

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

I have gotten to the last step in the instructions: git push website +master:refs/heads/master

我在 win7 中使用 git ming32 命令行

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.

这里的一个问题可能是程序正在寻找 Bill@***.com.当我通过 ssh 连接到我的网站时,我有一个不同的用户名(比如abc").所以也许这应该是 abc@***.com.如果是这样,我不知道如何更改它,或者我是否可以使用别名

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

推荐答案

您的 ssh 密钥很可能已从 ssh 代理中删除

Your ssh key most likely had been removed from ssh agent

ssh-add ~/.ssh/id_rsa

其中 id_rsa 是与 git repo 关联的 ssh 密钥

where id_rsa is a ssh key associated with git repo

更新

您可能会收到 无法打开与您的身份验证代理的连接. 解决您需要先启动代理的错误:

You may get Could not open a connection to your authentication agent. error to resolve that you need to start the agent first by:

eval `ssh-agent -s`

这篇关于git:致命:无法从远程存储库读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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