问题描述
当我使用Git命令git pull更新我的存储库时,它失败了,如下所示:
致命:无法访问'...':来自服务器的空回复。
我尝试使用GitHub应用程序,但警告:
克隆到'renren_mobile'...
警告:找不到模板/Applications/GitHub.app/Contents/Resources/git/templates
2014-11-23 13:58:57.975 GitHub for Mac登录[659:11891] AskPass的参数:(
/Applications/GitHub.app/Contents/MacOS/GitHub for Mac登录,
用户名为'https://github.com' :
)
2014-11-23 13:58:58.032 GitHub for Mac登录[660:11915] AskPass带参数:(
/Applications/GitHub.app/Contents/MacOS / GitHub for Mac登录,
密码为'':
)
致命:无法访问'...':服务器
(128)
我解决了这个问题。我想这可能是因为https,但我不太确定。
您可以将远程URL从HTTPS切换到SSH。
1.请参阅此链接:
另外,我必须配置ssh密钥。
2.结束:
我碰到过这个问题,因为我取代了我的mac,但是我做了数据传输,我想这可能是因为关键原因。
It's failed when I used Git command "git pull" to update my repository, messages as below:fatal: unable to access '...': Empty reply from server.
And the I tried to use the GitHub App, but alert this:
Cloning into 'renren_mobile'...
warning: templates not found /Applications/GitHub.app/Contents/Resources/git/templates
2014-11-23 13:58:57.975 GitHub for Mac Login[659:11891] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login",
"Username for 'https://github.com': "
)
2014-11-23 13:58:58.032 GitHub for Mac Login[660:11915] AskPass with arguments: (
"/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login",
"Password for '': "
)
fatal: unable to access '...': Empty reply from server
(128)
I resolved this problem. I think it happened maybe because of https but I am not very sure.You can Switch remote URLs from HTTPS to SSH.
1.Pls refer to this link for details:https://help.github.com/articles/changing-a-remote-s-url/
Also I had to config the ssh key.
2.Follow this:https://help.github.com/articles/generating-ssh-keys/
I came across this problem because I replaced my mac, but I do the transfer of data,I think it is probably because the key reasons.
这篇关于如何解决“git pull,致命:无法访问'https://github.com...\':空的回复来自服务器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!