I try to clone my app service from git local rep from azure platform to local env (on PC). But when I do
git clone < https://[email protected]/appser.git>
console asks me about authentication with adminusername login. But what the password? It is not MicrosoftAppPassword, case when I try to use it, authentication is failed.
What is the password?
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:
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.