Explore Courses Blog Tutorials Interview Questions
+1 vote
in Azure by (45.3k points)

I am unable to run any commands against my remote repository at Visual Studio Team Services (VSTS) because authentication fails. I am able to do pulls, etc. through Visual Studio. But only through Visual Studio. Not through Git Bash, or any other tool like SourceTree.

1 Answer

+1 vote
by (16.8k points)
edited by

First, enable your authentication credentials, then set the secondary username.

Enter image description here

After this, create a personal access token in your Visual Studio account, then copy that token '

Enter image description here

Open your Git Bash and go to the cloned folder with your repository, enter the following command in order to make sure that it is storing the credentials properly and no repetitions are needed:

git config credential.helper store

git pull origin [your branch]

Looking for Azure material from basics! Refer to this video on Azure provided by Intellipaat:

After this, it will ask for the user name and password. So, simply you enter your username and token, acting as your password.

enter image description here

Browse Categories