Skip to content

Instantly share code, notes, and snippets.

@yzgyyang
Last active June 20, 2017 15:05
Show Gist options
  • Save yzgyyang/9a0e580a99733a1c8ea47d4d4c5139ae to your computer and use it in GitHub Desktop.
Save yzgyyang/9a0e580a99733a1c8ea47d4d4c5139ae to your computer and use it in GitHub Desktop.
Git remember Github login credentials

Set git to use the credential memory cache:

git config --global credential.helper cache

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

git config --global credential.helper 'cache --timeout=3600'
# (setting is in seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment