Git – Credential Storage: caching for some time (and removing it)
Posted by jpluimers on 2020/06/24
From [WayBack] Git – Credential Storage:
Git has a few options provided in the box:
- The default is not to cache at all. Every connection will prompt you for your username and password.
- The “cache” mode keeps credentials in memory for a certain period of time. None of the passwords are ever stored on disk, and they are purged from the cache after 15 minutes.
- …
$ git config --global credential.helper cache
The
cache
helper accepts the--timeout <seconds>
option, which changes the amount of time its daemon is kept running (the default is900
, or 15 minutes).
This is a one time config setting.
To remove it, use this command:
$ git config --global unset credential.helper cache
–jeroen
Leave a Reply