1GIT-CREDENTIAL-CAC(1)             Git Manual             GIT-CREDENTIAL-CAC(1)
2
3
4

NAME

6       git-credential-cache - Helper to temporarily store passwords in memory
7

SYNOPSIS

9       git config credential.helper 'cache [<options>]'
10

DESCRIPTION

12       This command caches credentials in memory for use by future Git
13       programs. The stored credentials never touch the disk, and are
14       forgotten after a configurable timeout. The cache is accessible over a
15       Unix domain socket, restricted to the current user by filesystem
16       permissions.
17
18       You probably don’t want to invoke this command directly; it is meant to
19       be used as a credential helper by other parts of Git. See
20       gitcredentials(7) or EXAMPLES below.
21

OPTIONS

23       --timeout <seconds>
24           Number of seconds to cache credentials (default: 900).
25
26       --socket <path>
27           Use <path> to contact a running cache daemon (or start a new cache
28           daemon if one is not started). Defaults to
29           $XDG_CACHE_HOME/git/credential/socket unless
30           ~/.git-credential-cache/ exists in which case
31           ~/.git-credential-cache/socket is used instead. If your home
32           directory is on a network-mounted filesystem, you may need to
33           change this to a local filesystem. You must specify an absolute
34           path.
35

CONTROLLING THE DAEMON

37       If you would like the daemon to exit early, forgetting all cached
38       credentials before their timeout, you can issue an exit action:
39
40           git credential-cache exit
41

EXAMPLES

43       The point of this helper is to reduce the number of times you must type
44       your username or password. For example:
45
46           $ git config credential.helper cache
47           $ git push http://example.com/repo.git
48           Username: <type your username>
49           Password: <type your password>
50
51           [work for 5 more minutes]
52           $ git push http://example.com/repo.git
53           [your credentials are used automatically]
54
55       You can provide options via the credential.helper configuration
56       variable (this example increases the cache time to 1 hour):
57
58           $ git config credential.helper 'cache --timeout=3600'
59

GIT

61       Part of the git(1) suite
62
63
64
65Git 2.39.1                        2023-01-13             GIT-CREDENTIAL-CAC(1)
Impressum