Git - error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly

You must have made a mistake in the remote URL, double-check the output with git remote -v and fix it with

 git remote set-url origin <new-url>

assuming the remote name is origin


For people who using TFS git repositories while on Windows. My Windows password recently changed therefor i had

error RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly

when doing diffrent things like fetch, push or pull. We using TFS git repo. I fixed this problem deleting my tfs password from Windows Credential Manager through Control Panel. https://support.microsoft.com/help/4026814/windows-accessing-credential-manager .


The problem solved right after update to git version 1.8.x

Tags:

Git

Git Remote