当我用Git命令"git pull"来更新我的仓库时,它失败了,信息如下。 fatal: unable to access '...'。来自服务器的空回复。
我试着使用GitHub应用程序,但提示如下。
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)
我解决了这个问题。我想这可能是因为HTTPS的原因,但我不是很确定。 你可以把远程URL从HTTPS切换到SSH。
1.请参考这个链接以了解详情:https://help.github.com/articles/changing-a-remote-s-url/
此外,我还必须配置SSH密钥。
2.按照这个:https://help.github.com/articles/generating-ssh-keys/
我遇到这个问题是因为我更换了我的mac,但我做了数据传输,我想这可能是因为钥匙的原因。