可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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)
回答1:
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.
回答2:
I was stuck in this problem until i noticed that i was not logged into my VPN.
Explanation:
1) If you have configured your proxy for a VPN, you need to login to your VPN to use the proxy.
2) to use it outside the VPN use the unset command:
git config --global --unset http.proxy
and remember to set the proxy when within the VPN.
Hope this comment saves someone the 3 hours I was pointlessly trying to read workarounds
回答3:
On Windows:
Go to Win -> Control Panel -> Credential Manager -> Windows Credentials
Search for github address and remove it.
Then try to execute:
git push -u origin master
Windows will ask for your git credentials again, put the right ones and that's it.
回答4:
I solved such a problem by replacing https part of my remote origin with http. It is also a workaround. I think it may help someone in the future.
回答5:
I had tried most of the answers here but didn't manage to resolve the issue (on Windows 10).
What resolved the problem was simply to upgrade version from git version 2.8.1.windows.1
to the latest version git version 2.10.1.windows.1
回答6:
If unsetting using
`git config --global --unset-all https.proxy`
doesn't work for you .
Then check if the environment variable http_proxy and https_proxy are set . Check using this command : -
`env | grep -i proxy`
If this variable is set to something , then you can just unset it using :-
`https_proxy=""`
回答7:
I tried a few of the tricks listed here without any luck. Looks like something was getting cached by my terminal emulator (iTerm2) or session. The issue went away when I ran the command from a fresh terminal tab.
回答8:
I had the same problem however, with a Jenkins installation. The response back from trying to clone was always:
stderr: fatal: unable to access 'https://my.gitlab.server/group/repo.git/': Empty reply from server
Unfortunately switching to http wasn't an option, so I needed the root cause. Turns out there was a http setting in the global config for the Jenkins user (likely added when we were running a self-signed cert on out gitlab instance). Taking look at the global config:
$ git config --global -l http.sslverify=false
Removing this did the trick
$ git config --global --unset http.sslverify
(It also looks like this is a typo, with the correct key http.sslVerify
)
回答9:
I solved, replacing 'http..' git url with 'ssh..' simple open .git/config file and copy it there