I am trying to use git to push my repository to a visual studio team services project, but I get the error:
fatal: Authentication failed for (url of team project
I am using the cmds:
git remote add origin
https://XXXXXXX.visualstudio.com/DefaultCollection/_git/project
git push -u origin -–all
Any idea of the fix for this?
Thanks!
I had the same problem, I tried to update my password using windows credential manager, it still didn't fix the issue
Control Panel --> Credential Manager --> Manage Windows Credentials --> Choose the entry of the git repository, and Edit the user and password.
I then deleted all the git related entry in credentials manager and then tried to use Git using visual studio, this time it prompted for new credentials
The best option today is to install https://github.com/Microsoft/Git-Credential-Manager-for-Windows that supports VSO, GitHub and is improving every month.
I had this problem and the instructions from a tech at Microsoft fixed it for me:
With VSTS the url is, When you copy git clone url from vsts you always get
https://orgname@dev.azure.com/org/project/_git/repo
Replace orgname@ with your alternate username that you would have created in VSTS -> profile -> Security.
final git url -
https://alternateusername@dev.azure.com/org/project/_git/repo
If you wish to use GIT CLI and not interact with the build in GIT wrappers in Visual Studio you need to enable Alternate Authentication Credentials
How?
and set it up.
I suddenly started receiving this error when attempting to push changes from VS2017 to a VSTS Git repository. This functionality had worked the day before.
I checked my git.log file and saw a different exception :-
I downloaded the latest Git CredentialManager source from Gits Credential Manager repo and debugged it.
Once authenticated, the following exception occurred :-
I then realised that I had recently setup Fiddler to act as a proxy for all services as per the article capturing-traffic-from-.net-services-with-fiddler
Once I ran Fiddler, I was able to successfully connect.