1GIT-CREDENTIAL-CAC(1) Git Manual GIT-CREDENTIAL-CAC(1)
2
3
4
6 git-credential-cache - Helper to temporarily store passwords in memory
7
9 git config credential.helper 'cache [<options>]'
10
11
13 This command caches credentials in memory for use by future Git
14 programs. The stored credentials never touch the disk, and are
15 forgotten after a configurable timeout. The cache is accessible over a
16 Unix domain socket, restricted to the current user by filesystem
17 permissions.
18
19 You probably don’t want to invoke this command directly; it is meant to
20 be used as a credential helper by other parts of Git. See
21 gitcredentials(7) or EXAMPLES below.
22
24 --timeout <seconds>
25 Number of seconds to cache credentials (default: 900).
26
27 --socket <path>
28 Use <path> to contact a running cache daemon (or start a new cache
29 daemon if one is not started). Defaults to
30 $XDG_CACHE_HOME/git/credential/socket unless
31 ~/.git-credential-cache/ exists in which case
32 ~/.git-credential-cache/socket is used instead. If your home
33 directory is on a network-mounted filesystem, you may need to
34 change this to a local filesystem. You must specify an absolute
35 path.
36
38 If you would like the daemon to exit early, forgetting all cached
39 credentials before their timeout, you can issue an exit action:
40
41 git credential-cache exit
42
43
45 The point of this helper is to reduce the number of times you must type
46 your username or password. For example:
47
48 $ git config credential.helper cache
49 $ git push http://example.com/repo.git
50 Username: <type your username>
51 Password: <type your password>
52
53 [work for 5 more minutes]
54 $ git push http://example.com/repo.git
55 [your credentials are used automatically]
56
57
58 You can provide options via the credential.helper configuration
59 variable (this example drops the cache time to 5 minutes):
60
61 $ git config credential.helper 'cache --timeout=300'
62
63
65 Part of the git(1) suite
66
67
68
69Git 2.20.1 12/15/2018 GIT-CREDENTIAL-CAC(1)