Skip to content

Instantly share code, notes, and snippets.

@FossilBlade
Last active May 9, 2020 08:12
Show Gist options
  • Save FossilBlade/e90e949ab853eeaa6707f3ace93334db to your computer and use it in GitHub Desktop.
Save FossilBlade/e90e949ab853eeaa6707f3ace93334db to your computer and use it in GitHub Desktop.
Git Credential Cache

Configuring git-credential-cache on Linux

git-credential-cache is a useful tool to remember your HTTP/HTTPS git credentials (though you really should be using SSH instead). It’s useful when using long passwords or access tokens. It stores them in memory for a specific amount of time.

Enabling it

$ git config --global credential.helper cache

Setting the timeout

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

Disabling it

$ git config --global --unset credential.helper

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