Skip to content

Instantly share code, notes, and snippets.

@lsloan
Created August 21, 2019 17:24
Show Gist options
  • Save lsloan/3e33096f6ceb5ccd9b7e6d1c9bb1113e to your computer and use it in GitHub Desktop.
Save lsloan/3e33096f6ceb5ccd9b7e6d1c9bb1113e to your computer and use it in GitHub Desktop.

When git CLI or clients such as SourceTree fail to use the macOS (FKA Mac OS X, OSX) Keychain to store authentication credentials, it may help to set the git configuration for the credential helper. Sometimes it's necessary to rerun this configuration command at a later date even after it's been run before to set the value that may have been unset or corrupted by some other program.

The command to use is:

git config --global credential.helper osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment