Branch | Status |
---|---|
master |
Git Credential Manager Core (GCM Core) is a secure Git credential helper built on .NET that runs on Windows and macOS. Linux support is in an early preview.
Compared to Git's built-in credential helpers (Windows: wincred, macOS: osxkeychain, Linux: gnome-keyring) which provides single-factor authentication support working on any HTTP-enabled Git repository, GCM Core provides multi-factor authentication support for Azure DevOps, Azure DevOps Server (formerly Team Foundation Server), GitHub, and Bitbucket.
Git Credential Manager Core (GCM Core) replaces the .NET Framework-based Git Credential Manager for Windows (GCM), and the Java-based Git Credential Manager for Mac and Linux (Java GCM), providing a consistent authentication experience across all platforms.
Git Credential Manager Core is currently available for macOS and Windows, with Linux support in preview. If the Linux version of GCM Core is insufficient then SSH still remains an option:
Feature | Windows | macOS | Linux |
---|---|---|---|
Installer/uninstaller | ✓ | ✓ | ✓** |
Secure platform credential storage | ✓ Windows Credential Manager |
✓ macOS Keychain |
✓ 1. Secret Service 2. pass /GPG3. Plaintext files |
Multi-factor authentication support for Azure DevOps | ✓ | ✓ | ✓* |
Two-factor authentication support for GitHub | ✓ | ✓* | ✓* |
Two-factor authentication support for Bitbucket | ✓ | ✓* | ✓* |
Windows Integrated Authentication (NTLM/Kerberos) support | ✓ | N/A | N/A |
Basic HTTP authentication support | ✓ | ✓ | ✓ |
Proxy support | ✓ | ✓ | ✓ |
Notes:
(*) Currently only supported when using Git from the terminal or command line. A platform-native UI experience is not yet available, but planned.
(**) Debian package offered but not yet available on an official Microsoft feed.
- macOS/Linux native UI (#136)
The preferred installation mechanism is using Homebrew; we offer a Cask in our custom Tap.
To install, run the following:
brew tap microsoft/git
brew install --cask git-credential-manager-core
After installing you can stay up-to-date with new releases by running:
brew upgrade git-credential-manager-core
If you have an existing installation of the 'Java GCM' on macOS and you have installed this using Homebrew, this installation will be unlinked (brew unlink git-credential-manager
) when GCM Core is installed.
To uninstall, run the following:
brew uninstall --cask git-credential-manager-core
We also provide a .pkg installer with each release. To install, double-click the installation package and follow the instructions presented.
To uninstall, run the following:
sudo /usr/local/share/gcm-core/uninstall.sh
Download the latest .deb package, and run the following:
sudo dpkg -i <path-to-package>
git-credential-manager-core configure
Note that Linux distributions require additional configuration to use GCM Core.
Download the latest tarball, and run the following:
tar -xvf <path-to-tarball> -C /usr/local/bin
git-credential-manager-core configure
You can download the latest installer for Windows to install GCM Core standalone.
Installing GCM Core as a standalone package on Windows will forcably override the version of GCM Core that is bundled with Git for Windows, even if the version bundled with Git for Windows is a later version.
There are two flavors of standalone installation on Windows:
-
User (preferred) (
gcmcoreuser-win*
):Does not require administrator rights. Will install only for the current user and updates only the current user's Git configuration.
-
System (
gcmcore-win*
):Requires administrator rights. Will install for all users on the system and update the system-wide Git configuration.
To install, double-click the desired installation package and follow the instructions presented.
GCM Core installs side-by-side any existing Git Credential Manager for Windows installation and will take precedence over it and use any existing credentials so you shouldn't need to re-authenticate.
To uninstall, open the Settings app and navigate to the Apps section. Select "Git Credential Manager Core" and click "Uninstall".
To uninstall, open Control Panel and navigate to the Programs and Features screen. Select "Git Credential Manager Core" and click "Remove".
Git Credential Manager Core is called implicitly by Git, when so configured. It is not intended to be called directly by the user.
For example, when pushing (git push
) to Azure DevOps, a window is automatically opened and an OAuth2 flow is started to get your personal access token.
Read full command line usage here.
See detailed information here.
- Frequently asked questions
- Development and debugging
- Command-line usage
- Configuration options
- Environment variables
- Network and HTTP configuration
- Architectural overview
- Host provider specification
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.