Employ Git Credential Manager to authenticate to Azure Repos

Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2022 | TFS 2022

Visual Studio 2022 | Visual Studio 2022 | Visual Studio 2022

Git Credential Manager 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 back up multi-cistron authentication through Microsoft account or Azure Agile Directory (Azure AD). Besides supporting multi-gene authentication with Azure Repos, credential managers also back up two-gene authentication with GitHub repositories.

Azure Repos provides IDE support for Microsoft business relationship and Azure Advertising hallmark through the following clients:

  • Squad Explorer in Visual Studio
  • IntelliJ and Android Studio with the Azure Repos Plugin for IntelliJ
  • Eclipse with the Team Explorer Everywhere plug-in

If your environs doesn't have an integration available, configure your IDE with a Personal Admission Token or SSH to connect to your repositories.

Install Git Credential Manager

Windows

Download and run the latest Git for Windows installer, which includes Git Credential Manager. Make sure to enable the Git Credential Managing director installation selection.

Select Enable Git Credential Manager during Git for Windows install

macOS and Linux

You may utilise SSH keys to authenticate to Azure Repos, or you lot may use Git Credential Director.

Installation instructions are included in the GitHub repository for GCM. On Mac, we recommend using Homebrew. On Linux, you tin can install from a .deb or a tarball.

Using the Git Credential Managing director

When you connect to a Git repository from your Git customer for the outset time, the credential manager prompts for credentials. Provide your Microsoft account or Azure Advert credentials. If your account has multi-cistron hallmark enabled, the credential manager prompts you to go through that process every bit well.

Git Credential Manager prompting during Git pull

In one case authenticated, the credential managing director creates and caches a personal admission token for hereafter connections to the repo. Git commands that connect to this business relationship won't prompt for user credentials until the token expires. A token tin can be revoked through Azure Repos.

Getting help

You lot can open and written report issues with Git Credential Manager on the projection GitHub.