Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

git-credential-manager

> 数据库
Open source

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.

9.1K stars0 likes0 views
WebsiteGitHub

About

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.

Git Credential Manager

Build Status


Git Credential Manager (GCM) is a secure Git credential helper built on .NET that runs on Windows, macOS, and Linux. It aims to provide a consistent and secure authentication experience, including multi-factor auth, to every major source control hosting service and platform.

GCM supports (in alphabetical order) Azure DevOps, Azure DevOps Server (formerly Team Foundation Server), Bitbucket, GitHub, and GitLab. Compare to Git's built-in credential helpers (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring/libsecret), which provide single-factor authentication support for username/password only.

GCM replaces both the .NET Framework-based Git Credential Manager for Windows and the Java-based Git Credential Manager for Mac and Linux.

Install

See the installation instructions for the current version of GCM for install options for your operating system.

Current status

Git Credential Manager is currently available for Windows, macOS, and Linux and works with HTTP(S) remotes.

You can still use Git with SSH - see the specific documentation for your host on how to set up SSH: Azure DevOps, GitHub, Bitbucket

Feature Windows macOS Linux
Installer/uninstaller ✓ ✓ ✓
Secure platform credential storage (see more) ✓ ✓ ✓
Entra authentication with broker support opt-in ✗ ✗
Azure DevOps authentication ✓ ✓ ✓
GitHub & GHES authentication ✓ ✓ ✓
Bitbucket Cloud & DC authentication ✓ ✓ ✓
GitLab authentication ✓ ✓ ✓
Windows Integrated Authentication (NTLM/Kerberos) ✓ N/A N/A
Generic OAuth authentication ✓ ✓ ✓
Basic HTTP authentication ✓ ✓ ✓
Network proxies ✓ ✓ ✓
amd64 support ✓ ✓ ✓
x86 support ✓ N/A ✗
arm64 support best effort ✓ ✓
armhf support N/A N/A ✓

Supported Environments

We aim to support the broadest set of operating systems and distributions, within reason. We aim to target and update to the latest current .NET LTS version as they become generally available.

Windows

GCM supports Windows 10 and later, including Windows Server 2016 and later. This is the same support matrix as the .NET runtime on Windows.

Windows Subsystem for Linux (WSL)

See detailed WSL information here.

Windows 7 and Windows 8.x

As of GCM version 3.x, Windows 7 and Windows 8.x are no longer supported. We continue to provide minimal, security-only support for GCM 2.9.x on Windows 7 and Windows 8.x, but we recommend upgrading to a supported version of Windows.

The maint-v2 and releases/v2 branches are maintained to allow for security patches and releases for GCM v2.x for Windows 7 and Windows 8.x only. These branches will not receive new features.

macOS

GCM supports macOS 14 and later. This is the same support matrix as the .NET runtime on macOS.

Linux

GCM provides support only for the Linux distributions that are officially supported by dotnet.

Git compatibility

Git Credential Manager tries to be compatible with the broadest set of Git versions (within reason). However there are some known problematic releases of Git that are not compatible.

  • Git 1.x

    The initial major version of Git is not supported or tested with GCM.

  • Git 2.26.2

    This version of Git introduced a breaking change with parsing credential configuration that GCM relies on. This issue was fixed in commit 12294990 of the Git project, and released in Git 2.27.0.

How to use

Once it's installed and configured, Git Credential Manager is called implicitly by Git. You don't have to do anything special, and GCM isn't intended to be called directly by the user. For example, when pushing (git push) to Azure DevOps, Bitbucket, or GitHub, a window will automatically open and walk you through the sign-in process.

This process will look slightly different for each Git host, and even in some cases, whether you've connected to an on-premises or cloud-hosted Git host. Later Git commands in the same repository will re-use existing credentials or tokens that GCM has stored for as long as they're valid.

Read full command line usage here.

Configuring a proxy

See detailed information here.

Additional Resources

See the documentation index for links to additional resources.

Experimental Features

  • (None at this time)

Future features

Curious about what's coming next in the GCM project? Take a look at the project roadmap! You can find more details about the construction of the roadmap and how to interpret it here.

Contributing

This project welcomes contributions and suggestions. See the contributing guide to get started.

This project follows GitHub's Open Source Code of Conduct.

License

We're MIT licensed. When using GitHub logos, please be sure to follow the GitHub logo guidelines.

Issues· 152 open

View all issuesOpen on GitHub
  • #2426

    GCM does not open web browser with oauth flow for oauth-enabled provider on macOS

    auth-issueUpdated Sep 28, 2026
  • #1555

    Constant popups to authenticate HTTP(S) access to the remote repository

    auth-issueUpdated Sep 22, 2026
  • #2424

    I should please open an issue

    Updated Sep 18, 2026
  • #2435

    Add option/setting to suppress `erase` operation

    enhancementUpdated Sep 15, 2026
  • #1914

    Can't install on MacOS

    platform:osxauth-issueUpdated Aug 20, 2026
  • #2079

    Constantly being asked to authenticate keychain on MacOS against Azure Devops

    platform:osxhost:azure-reposauth-issueUpdated Aug 18, 2026
  • #2411

    LinuxSessionManager does not check for CODESPACES in addition to REMOTE_CONTAINERS

    auth-issueUpdated Aug 16, 2026
  • #1895

    Gitlab Self-Hosted git client OAuth The string binding is invalid

    auth-issueUpdated Jul 30, 2026
  • #1705

    GCM does not prompt for auth on first git call after PATs expire

    auth-issueUpdated Jul 27, 2026
  • #2360

    Allow MSAL token cache to use GCM's collection of secure storage options

    enhancementplatform:linuxauth:entraUpdated Jul 12, 2026

> Tags

C#aadauthenticationazure-devopsazure-repos

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库