Error gits on push Empty server response

I am trying to make new changes to an existing repo, however I keep getting the following error:

-MacBook-Pro: spa $ git push origin master Username for XX Password for fatal: unable to access https://github.com/XXXX/ ': empty response from Server

I even tried with a new repo, but the result is the same.

+6
source share
4 answers

grr ...

The problem was fixed after rebooting my Mac.

+12
source

You can restart the computer or restart the local server.

+1
source

Perhaps my problem was different, but the same result: "An empty message from the server." I resolved this by doing

git fetch origin --prune

After that, the click was successful.

+1
source

I had a similar problem with Git. I realized this is a problem with Git Credentials managed by Windows.

Here I tried step by step

  • Rebooting my computer.
  • Rebooting my network device
  • Removing Credentials from Credential Manager in Windows Control Panel
  • Override remote URL with

    git remote url set

When I tried to click after these steps, windows requested new credentials. I entered my github / any service name and password and the click was successful.

That's what I think. When you do not add credentials manually, Windows saves the credentials in a temporary cache when you create the repository for the first time. Unfortunately, this temporary cache is lost after a while, so the login credentials for your remote Git are lost. Adding them manually once should solve the problem forever.

0
source

Source: https://habr.com/ru/post/982091/


All Articles