git-credential-azure is a Git credential helper that authenticates to Azure Repos (dev.azure.com). Azure Repos is part of Azure DevOps.
The first time you authenticate, the helper opens a browser window to Microsoft login. Subsequent authentication is non interactive.
Download binary from https://github.com/hickford/git-credential-azure/releases.
Then test that Git can find the application:
git credential-azure
If you have problems, make sure that the binary is located in the path and is executable.
Several Linux distributions include a git-credential-azure package:
Go users can install the latest release to ~/go/bin
with:
go install github.com/hickford/git-credential-azure@latest
This assumes you already have a storage helper configured such as cache or wincred.
git config --global --add credential.helper azure
If you use more than one user or organization across Azure Repos, make sure that the remote URLs include usernames. This is the default if you copied the URLs from the Azure Repos web interface.
Alternatively, you can set credential.useHttpPath to store separate credentials for each repo:
git config --global credential.https://dev.azure.com.useHttpPath true
Run:
git config --global --unset-all credential.helper azure
Install locally with go install .
.
Use the -verbose
flag to print more details:
git config --global --unset-all credential.helper azure
git config --global --add credential.helper "azure -verbose"
- Git Credential Manager: a Git credential helper that authenticates to Azure Repos (and other hosts)
- Caveats: no support for Linux arm64
- git-credential-oauth (sister project): a Git credential helper that authenticates to GitHub, GitLab, BitBucket and other hosts using OAuth