1GIT-CREDENTIAL-CACHE(1)           Git Manual           GIT-CREDENTIAL-CACHE(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 for use by future Git programs. The
13       stored credentials are kept in memory of the cache-daemon process
14       (instead of being written to a file) and are forgotten after a
15       configurable timeout. Credentials are forgotten sooner if the
16       cache-daemon dies, for example if the system restarts. The cache is
17       accessible over a Unix domain socket, restricted to the current user by
18       filesystem permissions.
19
20       You probably don’t want to invoke this command directly; it is meant to
21       be used as a credential helper by other parts of Git. See
22       gitcredentials(7) or EXAMPLES below.
23

OPTIONS

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

CONTROLLING THE DAEMON

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

EXAMPLES

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       You can provide options via the credential.helper configuration
58       variable (this example increases the cache time to 1 hour):
59
60           $ git config credential.helper 'cache --timeout=3600'
61

GIT

63       Part of the git(1) suite
64
65
66
67Git 2.43.0                        11/20/2023           GIT-CREDENTIAL-CACHE(1)
Impressum