Azure Git Repo credential

Azure DevOps Repo Git


To access the git repo on Azure Devops


If using 'Git for Windows', either 'Clone in VS Code' or clone from Git Bash will prompt to login using your normal account and password.

However, as if using Git installed through Anaconda, it doesn't seem to support the windows login, so a separate credential needs to be used.


so firstly need to generate a credential for accessing the repo.

Go to clone repository, right under that HTTPS link, click 'Generate Git Credentials'.

This gives a username and a password. 

The password is displayed only once, so copy it safe. Also the password is by default valid for like a month, 

so edit the expiry date of the credential at https://dev.azure.com/AngloDevOps/_usersSettings/tokens, under your personal access tokens tab.


Now Run Git Bash from a folder, and clone the repo.

For the first time it will pop up to ask about credential helper. You may use wincred (windows credential) to store the password 

So you don't need to type in every time. Simply paste the previously generated password and hit Ok


Done.


As the password is stored in in Windows Credentials, you don't need to type in again until the password expires.

Search for Windows Credentials from windows and you will see the password stored there.