Git Works in GitHub Desktop, So Why Does the Terminal Say "Authentication failed"?
I needed to create a new branch in a mobile project. A routine job: git fetch, git branch, move on. But the very first command gave me this: 1 fatal: Authentication failed for 'https://azuredevops.company.local/Collection/Project/_git/Project/' Another repo on the same server failed the same way. And on top of that, GitHub Desktop was connecting to the same server without any trouble. This post walks through the road to the fix, the wrong diagnoses I made along the way, and the one-line setting that finally solved it. If you use an on-prem Azure DevOps Server (formerly TFS) and get this error in the terminal, the fix is most likely at the end.