Caching your GitHub password in Git
- Tell Git to use osxkeychain using the global
credential.helper
config:git config --global credential.helper osxkeychain
# Set git to use the osxkeychain credential helper
The next time you clone an HTTPS URL that requires a password, you'll be prompted for your username and password, and to grant access to the OSX keychain. After you've done this, the username and password are stored in your keychain and you won't be required to type them in to Git again.