Skip to content

Instantly share code, notes, and snippets.

@zubair1024
Created March 8, 2020 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zubair1024/9adde1289a17a6893ee0401f2e45731d to your computer and use it in GitHub Desktop.
Save zubair1024/9adde1289a17a6893ee0401f2e45731d to your computer and use it in GitHub Desktop.

Caching your GitHub password in Git

$ git config --global credential.helper cache

  • Set the cache to timeout after 1 hour (setting is in seconds)

$ git config --global credential.helper 'cache --timeout=3600'

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