Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active August 29, 2015 14:22
Show Gist options
  • Save josejuansanchez/43de8238c68be4ce0e6c to your computer and use it in GitHub Desktop.
Save josejuansanchez/43de8238c68be4ce0e6c to your computer and use it in GitHub Desktop.
Caching your GitHub password in Git
$ git config --global credential.helper cache
# Set git to use the credential memory cache

To change the default password cache timeout, enter the following:

$ git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment