Note: the syntax would be:
git config credential.helper 'cache --timeout=3600'
Otherwise, the default cache time is 15 minutes.
Actually, Git 2.39 (Q4 2022) updates the credential-cache documentation to provide a more realistic example.
See commit f13c3f2 (09 Nov 2022) by M Hickford (hickford
).
(Merged by Taylor Blau -- ttaylorr
-- in commit 3f98d7a, 18 Nov 2022)
Documentation
: increase example cache timeout to 1 hour
Signed-off-by: M Hickford
Signed-off-by: Taylor Blau
Previously, the example decreased the cache timeout compared to the default, making it less user friendly.
Instead, nudge users to make cache more usable.
Many users choose store over cache.
See this thread
The default timeout remains 15 minutes.
A stronger nudge would be to increase that.
git credential-cache
now includes in its man page:
variable (this example increases the cache time to 1 hour):
$ git config credential.helper 'cache --timeout=3600'