Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve "git pull,fatal: unable to access 'https://github.com...\': Empty reply from server"

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)
like image 469
Merlin Avatar asked Nov 23 '14 09:11

Merlin


5 Answers

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.

like image 163
Hao Kang Avatar answered Nov 07 '22 23:11

Hao Kang


I was stuck in this problem until I noticed that I was not logged into my VPN.

  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.

like image 35
Ganesh Kamath - 'Code Frenzy' Avatar answered Nov 08 '22 01:11

Ganesh Kamath - 'Code Frenzy'


On Windows:

Go to Win -> Control Panel -> Credential Manager -> Windows Credentials

Search for github address and remove it.

enter image description here

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.

like image 37
Marco Avatar answered Nov 08 '22 00:11

Marco


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.

like image 14
izilotti Avatar answered Nov 07 '22 23:11

izilotti


Try, this

git config --global --unset http.proxy

git config --global --unset https.proxy

like image 6
Ratnesh Shukla Avatar answered Nov 08 '22 01:11

Ratnesh Shukla