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:

-MacBook-Pro:spa $ git push origin master Username for XX Password for fatal: unable to access ‘’: Empty reply from

  • 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.

  • What does git blame do?
  • Github project, intended to show evolution, how to manage forks/branches?
  • List git tag names, dates and messages
  • Development Environment with Git + Unison
  • Continue Working on a sub branch while waiting a pull
  • Branch/master tag revision increments using Git
  • 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

    1. Restarting my computer
    2. Restarting my network device
    3. Deleting credentials from credential manager on windows’ control panel
    4. 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.

    Git Baby is a git and github fan, let's start git clone.