Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

git - git:致命的:无法从远程存储库读取(git: fatal: Could not read from remote repository)

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

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

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

(我已经到达指示的最后一步:git push website + master:refs / heads / master)

I am working using the git ming32 command line in win7

(我正在使用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.

One problem here may be that the program is looking for Bill@***.com.

(这里的一个问题可能是该程序正在寻找Bill@***.com。)

when I connect via ssh to my site I have a different username( lets say 'abc').

(当我通过ssh连接到我的网站时,我使用了另一个用户名(可以说'abc')。)

so maybe this should be abc@***.com.

(所以也许应该是abc@***.com。)

If so I don't know how to change this or if I can push under an alias

(如果是这样,我不知道该如何更改,或者我是否可以使用别名进行推送)

  ask by user61629 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your ssh key most likely had been removed from ssh agent

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

ssh-add ~/.ssh/id_rsa

where id_rsa is a ssh key associated with git repo

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...