Skip to content

Instantly share code, notes, and snippets.

@c33k
Created October 8, 2015 01:35
Show Gist options
  • Save c33k/58d271d4e817a9b0a42c to your computer and use it in GitHub Desktop.
Save c33k/58d271d4e817a9b0a42c to your computer and use it in GitHub Desktop.
Use git Credential Helper so github don't ask your password every single time you make a push.

https://help.github.com/articles/caching-your-github-password-in-git/

In Terminal, enter the following:

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)

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