How to authenticate when I try to git clone from azure git?
You could use your personal access token (PAT) or SSH to authenticate when you try to git clone from azure git.
Authenticate with personal access tokens
And the command like:
https://<OrganizationName>@dev.azure.com/<OrganizationName>/MyTestProject/_git/TestSample
Then we need to replace the first OrganizationName with PAT. So, it will be:
https://<PAT>@dev.azure.com/<OrganizationName>/MyTestProject/_git/TestSample
Or you can use the SSH key to authenticate:
Use SSH key authentication
git clone [email protected]:v3/fabrikam-fiber/FabrikamFiber/FabrikamFiber
Last but not least, You could also install Git Credential Managers to login in Azure devops. After it installed, it will pop up a window to let your enter username and password when you use git clone command:
Use Git Credential Managers to authenticate to Azure Repos
Hope this helps.
adminusername? is it your own account ?