gitazureazure-devopsazure-repos

Can't push local git to Azure DevOps git repo because of Authentication Failed, but for correct password


I have an Azure DevOps account that I'm trying to use to host git repos. The problem is that when I add remote origin then try to git push -u origin --all I'm prompted for a password, but the account's password results with: fatal: Authentication failed for...

Is there a different password you have to set up or something diffierent that needs configured to be able to access Azure DevOps Repos? I couldn't find a decent explanation as to why your account password fails or how to set another password that'll be accepted. Thanks for any tips or advice!


Solution

  • Ultimately I had to remove my first repo, then create a new one with the same name before being able to gain proper access. I have had zero issues with creating/updating/deleting repos afterwards.

    It was solely the initial repo that was not working. Could've been an edge case, but if you find that the suggested steps aren't allowing you to access your azure repo, then try removing and recreating it.

    note: The Create a new Git repo in your project page on MSDN's Azure section was rather helpful for this and other issues you may come across.