Git Credentials Helper

While working with git and GitHub it can often become annoying to always have to type in credentials when dealing with remote repositories. Thankfully GitHub has suggestions for Mac, Windows and Linux. For those of you who don’t care for the link, heres a summary:

  • Mac: There’s more than one step involved:
    1. Check if osxkeychain is setup: git credential-osxkeychain
    2. git config credential.helper osxkeychain
  • Windows: git config credential.helper wincred
  • Linux (and actually for all of them if you prefer a generic way): git config credential.helper cache

All of the above will set up the credentials for the specific git directory you are working on. If you would like to apply this behavior to all the repositories then simply add the --global flag to the commands like so: git config --global credential.helper cache.

Leave a Reply

Your email address will not be published. Required fields are marked *

*