Use Git Credential Manager Core to authenticate to Azure Repos
Azure Repos | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018-TFS 2015
Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015
Git Credential Manager Core simplifies authentication with your Azure Repos Git repositories. Credential managers let you use the same credentials that you use for the Azure DevOps Services web portal. Credential managers support multi-factor authentication through Microsoft account or Azure Active Directory (Azure AD). Besides supporting multi-factor authentication with Azure Repos, credential managers also support two-factor authentication with GitHub repositories.
Azure Repos provides IDE support for Microsoft account and Azure AD authentication through the following clients:
- Team Explorer in Visual Studio
- IntelliJ and Android Studio with the Azure Repos Plugin for IntelliJ
- Eclipse with the Team Explorer Everywhere plug-in
Install Git Credential Manager Core
Download and run the latest Git for Windows installer, which includes Git Credential Manager Core. Make sure to enable the Git Credential Manager installation option.
macOS and Linux
Using the Git Credential Manager
When you connect to a Git repository from your Git client for the first time, the credential manager prompts for credentials. Provide your Microsoft account or Azure AD credentials. If your account has multi-factor authentication enabled, the credential manager prompts you to go through that process as well.
Once authenticated, the credential manager creates and caches a personal access token for future connections to the repo. Git commands that connect to this account won't prompt for user credentials until the token expires. A token can be revoked through Azure Repos.
You can open and report issues with Git Credential Manager Core on the project GitHub.