Updating GIT credentials in Command Line

Aug 5, 2020 min read

If you’ve seen an ‘Authentication failed for https://____.git error, here’s a quick command to update your credentials through the command line.

For Mac:

git config --global credential.helper osxkeychain

For Windows:

git config --global credential.helper wincred

You should then see a prompt for username/ password, enter your new credentials here.