Skip to content

Instantly share code, notes, and snippets.

@jredville
Created June 23, 2012 14:32
Show Gist options
  • Save jredville/2978519 to your computer and use it in GitHub Desktop.
Save jredville/2978519 to your computer and use it in GitHub Desktop.
git https
With git 1.7.9 or later, you can just do:
git config --global credential.helper cache
... which tells git to keep your password cached in memory for (by default) 15 minutes. You can set a longer timeout with:
git config credential.helper 'cache --timeout=3600'
(That example is suggested in the GitHub help page for Linux.) GitHub's help also suggests that if you're on Mac OS and used homebrew to install git, you can use the native Mac OS keystore with:
git config --global credential.helper osxkeychain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment