Skip to content

Commit f13c3f2

Browse files
hickfordttaylorr
authored andcommitted
Documentation: increase example cache timeout to 1 hour
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. https://lore.kernel.org/git/CAGJzqskRYN49SeS8kSEN5-vbB_Jt1QvAV9QhS6zNuKh0u8wxPQ@mail.gmail.com/ The default timeout remains 15 minutes. A stronger nudge would be to increase that. Signed-off-by: M Hickford <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 319605f commit f13c3f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-credential-cache.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ $ git push http://example.com/repo.git
6969
------------------------------------
7070

7171
You can provide options via the credential.helper configuration
72-
variable (this example drops the cache time to 5 minutes):
72+
variable (this example increases the cache time to 1 hour):
7373

7474
-------------------------------------------------------
75-
$ git config credential.helper 'cache --timeout=300'
75+
$ git config credential.helper 'cache --timeout=3600'
7676
-------------------------------------------------------
7777

7878
GIT

0 commit comments

Comments
 (0)