I'm trying to update my git
settings (on macOS Big Sur) to use a personal access token for GitHub, instead of a username and password.
I have followed all the instructions and installed the osxkeychain
helper. Then:
git config --global credential.helper osxkeychain
The next time you clone an HTTPS URL that requires authentication, Git will prompt you for your username and password. When Git prompts you for your password, enter your personal access token (PAT) instead.
Sadly, these instructions seem incorrect. Git keeps using my name and password and doesn't ask for the new Personal Access Token. How can I fix this?