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:
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:
2. Reset Credentials¶
- Run:
Or manually remove any
github.com
orgit:
entries from Windows Credential Manager.
3. Try to Pull Again¶
- Run:
- 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:
- Or, clone the repository to a new directory:
- 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:
- 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:
orgithub.com
. - Any future
git pull
orgit push
operations should work without re-authentication.