Skip to content

Instantly share code, notes, and snippets.

@pfrozi
Last active July 12, 2017 17:08
Show Gist options
  • Save pfrozi/49437f400fc7d363c1af6dc2057e5421 to your computer and use it in GitHub Desktop.
Save pfrozi/49437f400fc7d363c1af6dc2057e5421 to your computer and use it in GitHub Desktop.
#!/bin/sh
git config --global credential.helper cache
# Set git to use the credential memory cache
git config --global credential.helper 'cache --timeout=7200'
# 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