Skip to content

Git Credential Manager


1. Check if Credential Manager is Installed

  • Git for Windows should include Git Credential Manager Core (GCM Core).
  • To check if installed, run:

    git credential-manager-core --version
    
    If you see "not a git command", you may need to install or update it.

  • Install/Update GCM Core:

  • Download and install from:
    Git Credential Manager
  • After installing, rerun:
    git config --global credential.helper manager-core
    

2. Reset Credentials

  • Run:
    git credential-manager-core erase
    
    Or manually remove any github.com or git: entries from Windows Credential Manager.

3. Try to Pull Again

  • Run:
    git pull
    
  • You should be prompted for your GitHub username and password.
  • Username: your GitHub username
  • Password: your Personal Access Token (PAT)

4. If Prompt Does Not Appear

  • Try running:
    git credential-manager-core configure
    
  • Or, clone the repository to a new directory:
    git clone https://github.com/grinntec/grinntec-mkdocs.git
    
  • This should prompt for credentials and set them up.

5. Verify PAT and Access

  • Make sure your PAT:
  • Is active
  • Has the repo scope
  • Is copied correctly (no spaces)
  • Make sure your GitHub account has access to the repository.

6. Check for Multiple Git Installations

  • Sometimes, there are multiple Git installations on Windows.
  • Run:
    where git
    
  • Make sure you’re using the Git installed in the default location.

7. Final Check

  • After successful authentication, you should see a new credential in Windows Credential Manager for git: or github.com.
  • Any future git pull or git push operations should work without re-authentication.

References