How to use Git credential manager

Git Credential Manager (GCM) provides secure credential storage with advanced features like multi-factor authentication and OAuth support. As the creator of CoreUI with over 25 years of development experience, I’ve configured secure Git authentication for numerous enterprise teams. The most effective solution is to install Git Credential Manager which works across all platforms and Git hosting services. This approach eliminates password prompts while providing enterprise-grade security and modern authentication methods.

Install and use Git Credential Manager for secure credential storage.

# Install Git Credential Manager

# Windows (included with Git for Windows)
# Already installed if using Git for Windows 2.29+

# macOS (using Homebrew)
brew install --cask git-credential-manager

# Linux (download from releases)
# https://github.com/git-ecosystem/git-credential-manager/releases

# Configure Git to use GCM
git config --global credential.helper manager

# For macOS/Linux, you might need
git config --global credential.helper manager-core

# Verify configuration
git config --global credential.helper

# Test with a repository operation
git clone https://github.com/username/repository.git

After installation, GCM automatically handles authentication when you perform Git operations. For the first access, it opens a browser window or device code flow for OAuth authentication. Credentials are stored securely in your system’s credential manager (Windows Credential Manager, macOS Keychain, or Linux Secret Service). GCM supports personal access tokens, OAuth, and multi-factor authentication seamlessly.

Best Practice Note

This is the same credential management we recommend for CoreUI enterprise teams using Git. GCM provides better security than storing passwords in plain text and supports modern authentication methods like OAuth and device code flow. It works consistently across Windows, macOS, and Linux, making it ideal for cross-platform teams.


Speed up your responsive apps and websites with fully-featured, ready-to-use open-source admin panel templates—free to use and built for efficiency.


About the Author