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 ~/.git-credential-cache/socket. If your home directory is on a
31 network-mounted filesystem, you may need to change this to a local
32 filesystem.
33
35 If you would like the daemon to exit early, forgetting all cached
36 credentials before their timeout, you can issue an exit action:
37
38 git credential-cache exit
39
40
42 The point of this helper is to reduce the number of times you must type
43 your username or password. For example:
44
45 $ git config credential.helper cache
46 $ git push http://example.com/repo.git
47 Username: <type your username>
48 Password: <type your password>
49
50 [work for 5 more minutes]
51 $ git push http://example.com/repo.git
52 [your credentials are used automatically]
53
54
55 You can provide options via the credential.helper configuration
56 variable (this example drops the cache time to 5 minutes):
57
58 $ git config credential.helper 'cache --timeout=300'
59
60
62 Part of the git(1) suite
63
64
65
66Git 1.8.3.1 11/19/2018 GIT-CREDENTIAL-CAC(1)