gits error on push Empty reply from server
I have been trying to push new changes to my existing repo, however, I am keep getting the following error:
assembla and github Why do I have to use “git commit -a” rather than just “git commit”? Doing git-push without origin master how to synchronize git-svn repositories Difference between git branch --set-upstream-to vs git remote add origin Removing git repository objects entirely from all branches and tags and pushing changes to remote
I have even tried with the new repo but the result is same.
4 Solutions collect form web for “gits error on push Empty reply from server”
The problem got fixed after restarting my Mac computer.
Maybe mine was another problem but the same output: “Empty reply from server”.
I resolved it by doing
git fetch origin --prune
After that, push was successful.
You can restart you computer, or else restart your local server.
I had a similar problem with Git.
I figured it was a problem pertaining to Git Credentials managed by Windows.
Here’s what I tried step by step
- Restarting my computer
- Restarting my network device
- Deleting credentials from credential manager on windows’ control panel
- Redefining Remote URL by using
git remote set-url
When I tried pushing after these steps, windows asked for new credentials. I entered my Github/whatever service’s username and password and the push was successful.
Here’s what I think happened. When you don’t add credentials manually, Windows stores the credentials in a temporary cache when you make a repository for the first time. Unfortunately this temporary cache is lost after some time, thus the credentials for logging onto your remote Git are lost. Adding them manually once should solve the problem for good.