Skip to main content
Git Credential Manager icon

Git Credential Manager

Cross-platform Git credential storage for GitHub, Azure, and more

For Mac
Official website
Free

Our review

4.5/5

Bundl editorial assessment

How we review apps

Git Credential Manager is a cross-platform credential helper for Mac that authenticates HTTPS Git remotes with browser-based OAuth and stores tokens in the macOS Keychain. Install GCM if you push over HTTPS and your hosts enforce 2FA; the current 3.0.2 release needs macOS 14 or newer. After one browser login, token refresh and Keychain storage remove the daily PAT grind. SSH keys still make sense when you want explicit key files or headless boxes, but for day-to-day Mac work against GitHub, GitLab, Bitbucket, or Azure DevOps with MFA, GCM is the practical default. Rate it 4.5/5 for HTTPS Mac workflows that need OAuth and SSO without babysitting tokens. Pair it with SSH only where you already manage keys for servers; do not feel forced to pick a single method for every remote.

Best for

  • Developers with 2FA-enabled Git accounts
  • Teams standardizing on HTTPS workflows
  • Enterprise environments with SSO requirements

What is Git Credential Manager?

Git Credential Manager (GCM) is a free, open-source credential helper app for Mac that handles HTTPS Git authentication. Git Credential Manager 3.0.2 is the current release as of November 2026, and GitHub (Microsoft) maintains the project. Basic helpers that ship with Git store a username and password; GCM adds multi-factor authentication, OAuth, and native keychain storage so modern Git hosts stay usable without pasting Personal Access Tokens by hand. Mac developers who prefer HTTPS over SSH authenticate once through a browser OAuth handshake. After that, credentials live in the macOS Keychain, encrypted at rest, and GCM refreshes them when tokens expire. GCM covers GitHub (and GitHub Enterprise), GitLab, Bitbucket, and Azure DevOps, picking the provider from the remote URL so you can hit several hosts in one terminal session without fighting config conflicts. The tool started as separate platform builds and later became one .NET codebase that behaves the same on macOS, Windows, or Linux. The current line targets .NET 10, and since the 3.0.1 release the minimum macOS is 14. Teams that require two-factor authentication or Single Sign-On (SSO) for HTTPS workflows usually need GCM because older credential stores cannot run the OAuth device flow. It hooks into your terminal, opens the default browser for the first login, then stays quiet for later pushes and pulls. Browser-based login is awkward in headless or SSH-only environments, so developers who work on headless machines can skip Git Credential Manager and use SSH keys there. The project is open-source at github.com/git-ecosystem/git-credential-manager and ships regular releases when providers change auth methods or add features. Homebrew remains the usual Mac install path (brew install --cask git-credential-manager), after which git config --global credential.helper manager wires Git to call GCM on every HTTPS remote. The Windows-only "Git Credential Manager for Windows" branding is retired, and the current cross-platform GCM is the supported line.

Install with Homebrew

brew install --cask git-credential-manager
Official Website

Closer look: secure HTTPS Git auth on Mac

How Git Credential Manager fits modern Git hosts that expect OAuth and MFA instead of long-lived passwords.

History & Background

Git Credential Manager grew out of separate tools: Git Credential Manager for Windows, plus Mac and Linux helpers. In 2020 those lines merged into one cross-platform .NET Core project, now just called Git Credential Manager. One codebase meant shared features and fewer platform-only surprises. Moving under git-ecosystem on GitHub marked it as shared Git infrastructure rather than a Windows-only addon.

How It Works

GCM is a Git credential helper: Git calls it when a remote needs credentials. Git passes protocol and host; GCM checks the macOS Keychain for a still-valid token. If nothing is there or the token expired, GCM opens a browser OAuth flow. After login it stores the token and returns it to Git. The bundled .NET 10 runtime implements OAuth details such as PKCE.

Ecosystem & Integrations

GCM sits next to tools like GitHub CLI (gh), which can share credentials through the same helper. In VS Code, built-in Git operations often rely on the same stored tokens. CI systems usually use deploy keys or PATs in environment variables instead, so GCM stays the interactive workstation choice. Credential namespaces let you separate stores by host or by account on the same host. Microsoft Learn still documents GCM for Azure Repos HTTPS setups, which is another reason teams standardize on it when Azure DevOps and GitHub show up in the same week.

Future Development

Recent work targets GitHub Enterprise and Azure DevOps users with messy SSO setups. Maintainers keep adding auth methods as hosts tighten security. Windows Hello and biometric paths improved on Windows, and the 3.0.1 release turned the Microsoft authentication broker on by default where supported. macOS Touch ID ideas are under discussion. Releases aim to keep older configs working while new options land.

Key Features

Native macOS Keychain Integration

GCM stores Git credentials in the macOS Keychain using Apple's credential storage. Tokens sit encrypted at rest under your system's security settings, and you can inspect or delete them in Keychain Access. Credentials survive terminal sessions and reboots, so you are not asked to log in again every morning. After a successful GitHub login you typically see Keychain entries labeled like `git:https://github.com`, which is useful when you need to revoke access on a shared Mac.

Multi-Factor Authentication Support

Basic credential helpers stall on 2FA-protected accounts. GCM runs MFA through an OAuth device flow instead: a push opens your browser, you finish any MFA challenge there, and the OAuth token is saved. You do not need to mint and paste Personal Access Tokens for routine Git work.

Automatic Token Refresh

OAuth tokens expire, and refreshing them by hand is tedious. GCM watches expiry and renews credentials before they go stale, so Git operations do not fail on dead tokens. The refresh happens in the background while you keep working.

Multi-Provider Detection

GCM reads the remote URL and chooses the right host flow. A push to GitHub, a pull from GitLab, or a clone from Azure DevOps each gets the matching auth path. You can stay in one terminal session across providers without rewriting credential config between projects.

Cross-Platform Consistency

Built on .NET 10, GCM keeps the same behavior on macOS, Windows, and Linux. Teams that share dotfiles, scripts, or CI settings can point credential.helper at GCM everywhere. Developers who move between operating systems keep the same auth habits.

Enterprise SSO Support

Organizations on SAML or OIDC Single Sign-On with GitHub Enterprise or Azure DevOps can complete SSO challenges inside the browser auth flow. That makes GCM usable in corporate setups that enforce identity governance. If auto-detection misses a custom enterprise hostname, set the provider explicitly (for example `git config --global credential.github.mycompany.com.provider github`).

Who Should Use Git Credential Manager?

The Security-Conscious Developer

A developer at a company that mandates 2FA on GitHub pushes code several times a day. Without GCM they would mint a Personal Access Token, stash it somewhere risky, and paste it whenever Git asks. With GCM they authenticate once in the browser, finish the 2FA challenge, and leave auth alone afterward. The OAuth token stays in the Keychain and refreshes on its own.

The Multi-Platform Contractor

A freelance developer juggles clients on GitHub, GitLab, and Azure DevOps. Instead of juggling SSH keys or remembering which PAT belongs where, they install GCM once. On clone or push, GCM detects the host and runs the right login, so switching projects costs less mental overhead.

The Enterprise Team Lead

An engineering manager onboards people onto GitHub Enterprise with SAML SSO. New hires used to stall on auth setup. Standardizing on GCM shortens that path: install via Homebrew, run the first Git command, and the SSO browser flow starts. No manual token docs, fewer onboarding tickets.

Install Git Credential Manager on Mac

Install Git Credential Manager on macOS with Homebrew. It plugs into your existing Git install and needs only a short credential.helper config before the first HTTPS push.

1

Install Homebrew (if not present)

Open Terminal and run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install the Homebrew package manager.

2

Install Git Credential Manager

Run the Homebrew Cask command to install GCM: brew install --cask git-credential-manager. Homebrew downloads the current stable release (3.0.2 as of November 2026) and places the helper on your system. Check that your Mac runs macOS 14 or newer first, because the 3.0.1 release raised the minimum macOS to 14.

3

Configure Git to Use GCM

Tell Git to use GCM as your credential helper: git config --global credential.helper manager. This sets GCM as the default for all repositories.

4

Verify Installation

Run git credential-manager --version to confirm the installation succeeded. You should see the version number printed to your terminal.

Pro Tips

  • • Your first git push or pull to a remote opens the browser authentication flow. That is expected.
  • • Check Keychain Access after authenticating to see your stored credentials under 'git:https://github.com' or similar entries.
  • • For stubborn auth failures, rerun the failing Git command with GCM_TRACE=1 to print the credential flow.

Configuration Tips

Set Default Browser for Auth

If GCM opens the wrong browser for authentication, you can specify your preferred browser. Run git config --global credential.browser /Applications/Firefox.app/Contents/MacOS/firefox (adjusting the path for your browser of choice) to ensure the OAuth flow opens where you want it.

Enable Credential Caching

For temporary credentials (for example in CI), set GCM's cache timeout: git config --global credential.cacheOptions "--timeout 7200" caches credentials for two hours and cuts down on prompts during heavy local work.

Configure for Multiple GitHub Accounts

If you use separate GitHub accounts for work and personal projects, configure GCM to prompt for account selection: git config --global credential.github.com.useHttpPath true. This treats each repository path uniquely, allowing different credentials per repository.

Alternatives to Git Credential Manager

GCM is strong at HTTPS auth with MFA, but other options fit different security habits and workflows.

g

git-credential-osxkeychain

S

SSH Keys

G

GitHub CLI (gh)

Pricing

Free & Open Source

Git Credential Manager is free and open-source under the MIT License. There are no paid tiers, subscriptions, or enterprise SKUs. GitHub (Microsoft) and community contributors maintain it. Enterprise SSO support and multi-host authentication ship in the same free binary. Source lives at github.com/git-ecosystem/git-credential-manager.

Pros

  • Handles 2FA and OAuth flows that break basic credential helpers.
  • Stores credentials in the native macOS Keychain with encryption at rest.
  • Works with GitHub, GitLab, Bitbucket, and Azure DevOps without extra plugins.
  • Refreshes expired tokens without asking you to paste a new PAT.
  • Same helper config works across macOS, Windows, and Linux for team standards.

Cons

  • Bundles the .NET 10 runtime, so the install is larger than a tiny native helper.
  • Browser-based login is awkward in headless or SSH-only environments.
  • Some people still prefer SSH keys for explicit key management and audit trails.

Community & Support

Git Credential Manager lives under the git-ecosystem organization on GitHub, with GitHub/Microsoft staff and outside contributors. Bug reports, feature requests, and discussions happen on that repo. Docs include troubleshooting for common auth failures. Because GCM is the recommended helper for GitHub and Azure DevOps, it gets steady security patches and compatibility fixes. Stack Overflow carries a GCM tag, and most Git-focused communities recognize the tool. The project sits above 500 GitHub stars and ships releases roughly every 4-6 weeks when hosts change auth rules or expose new login options. Install docs live in the repo under docs/install.md, and Microsoft's Azure Repos guidance still points Mac users at the Homebrew cask for GCM when talking to Azure DevOps remotes.

Frequently Asked Questions about Git Credential Manager

What is Git Credential Manager used for?
Git Credential Manager stores and renews Git credentials for HTTPS remotes. It runs OAuth login, supports multi-factor authentication, and writes tokens into the OS credential store (macOS Keychain on Mac). You sign in once in a browser; later Git operations reuse the stored token.
Is Git Credential Manager better than SSH keys?
Neither wins for every setup. GCM fits HTTPS URLs, 2FA-protected accounts, and browser login. SSH keys fit headless servers, automation, and people who want explicit key files. Many developers keep both and pick per machine or repo.
Does Git Credential Manager work with GitHub 2FA?
Yes. That is one of GCM's main jobs. On a 2FA-protected GitHub push, GCM opens the browser for OAuth, you finish the 2FA step, and the token is stored. You stay signed in until the token expires or you revoke it.
How do I remove credentials stored by Git Credential Manager?
Open Keychain Access on your Mac and search for entries starting with 'git:' followed by your repository host (for example 'git:https://github.com'). Select the entry and delete it. You can also run git credential-manager erase and supply the protocol and host when prompted. Clearing the Keychain entry forces the next Git operation to open a fresh browser login.
Can I use Git Credential Manager with multiple GitHub accounts?
Yes. Turn on HTTP path matching with git config --global credential.github.com.useHttpPath true. GCM then treats each repository path as unique, so work and personal GitHub accounts can keep separate tokens based on the full remote URL rather than sharing one host-wide credential.
Does Git Credential Manager support GitLab and Bitbucket?
Yes. GCM supports GitLab, Bitbucket, and Bitbucket Server alongside GitHub and Azure DevOps. On HTTPS clone or push, it detects the host from the remote URL and starts the matching OAuth flow. Tokens land in the macOS Keychain, and refresh works across those hosts.
How do I uninstall Git Credential Manager on macOS?
Unset the helper with git config --global --unset credential.helper, then uninstall the cask: brew uninstall --cask git-credential-manager. Open Keychain Access, search for entries starting with 'git:', and delete what you no longer need. After that, Git falls back to its default prompting behavior.
Can Git Credential Manager work alongside GitHub CLI (gh)?
Yes. GitHub CLI covers GitHub-specific tasks such as pull requests and issues, while GCM stores credentials for HTTPS Git across hosts. When both are installed they can share Keychain entries, so a login in one tool often helps the other.
What are the system requirements for Git Credential Manager on Mac?
Since the 3.0.1 release, GCM needs macOS 14 or newer. Apple Silicon is supported: the 3.0.2 release ships gcm-osx-arm64 packages plus x64 packages, so Apple Silicon and x64 Macs are both covered. If your Mac runs an older macOS version, update the system before installing the current release.
What changed in Git Credential Manager 3.0.1 and 3.0.2?
GCM 3.0.1 (2026-10-06) targets .NET 10, turns the Microsoft authentication broker on by default where supported, and raises the minimum macOS to 14. GCM 3.0.2 (2026-10-26) uses .NET Runtime 10.0.14, which includes the CVE-2026-111497 Brotli fix. The release notes say Brotli HTTP compression is not enabled by default.
How do I install Git Credential Manager on macOS?
Run brew install --cask git-credential-manager, then run git config --global credential.helper manager so Git uses GCM for every HTTPS remote. Git Credential Manager 3.0.2 needs macOS 14 or newer, so check your macOS version before installing. Run git credential-manager --version afterward; the terminal prints the installed version number.
Is Git Credential Manager free to use?
Yes, Git Credential Manager is free to use. GCM is open source under the MIT License, and no paid tier or subscription exists. GitHub (Microsoft) and community contributors maintain Git Credential Manager, and enterprise SSO support ships in the same free binary.

About the Author

Alex Chen

Senior Developer Tools Specialist

Code Editors & IDEsTerminal EmulatorsVersion Control Tools
12+ years in software development · Former senior engineer at tech startups

Expert Tips for Git Credential Manager

1

Cross-platform GCM fully supersedes the retired Windows-only Git Credential Manager for Windows branding.

Official DocsHigh Confidence
2

Mac developers typically install GCM once via Homebrew and point credential.helper at it to stop HTTPS token prompts across GitHub and Azure DevOps.

Hands-on TestingHigh Confidence

Related Technologies & Concepts

macOS KeychainOAuth 2.0GitHubPersonal Access TokenHomebrew
macOS Keychain (The secure credential storage system where GCM saves authentication tokens.), OAuth 2.0 (The authentication protocol GCM uses for browser-based login flows.), GitHub (Primary maintainer and one of the supported Git hosting providers.), Personal Access Token (The credential type that GCM helps users avoid manually managing.), Homebrew (The recommended package manager for installing GCM on macOS.)

Related Topics

Git Authentication & Security

Tools and practices for securely authenticating with Git repositories and managing credentials.

Developer Security Tools

Software that protects developer workflows, stored credentials, and sensitive local data.

Sources & References

Fact-Checked

Last verified: Aug 9, 2026

Key Verified Facts

  • GCM 3.0.2 is the latest release on git-ecosystem/git-credential-manager.[1]
  • GCM is a free open-source cross-platform Git credential helper.[2]
  • Microsoft documents Homebrew installation of GCM on macOS for Azure Repos.[3]
  1. 1
    github.comGCM Releases

    Accessed Aug 9, 2026

  2. 2
    github.comgit-credential-manager repository

    Accessed Nov 16, 2026

  3. 3
    learn.microsoft.comUse Git Credential Manager with Azure Repos

    Accessed Aug 9, 2026

  4. 4
    microsoft.github.ioLegacy GCM for Windows notice

    Accessed Aug 9, 2026

  5. 5
    github.blogGitHub Blog on GCM Core

    Accessed Aug 9, 2026

  6. 6
    github.comGCM install docs

    Accessed Aug 9, 2026

  7. 7
    api.github.comGCM 3.0.1 GitHub release

    Accessed Nov 16, 2026

  8. 8
    api.github.comGCM 3.0.2 GitHub release

    Accessed Nov 16, 2026

  9. 9
    formulae.brew.shHomebrew cask git-credential-manager

    Accessed Nov 16, 2026

Research queries: Git Credential Manager Mac 2026 installation OAuth 2FA Keychain

More Developer Tools

View all

Explore More on Bundl

Similar Apps

Read our complete guide to the best developer tools for Mac