2 .\" Title: git-credential-cache
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.38.0.15.gbbe21b64a0
10 .TH "GIT\-CREDENTIAL\-CAC" "1" "10/07/2022" "Git 2\&.38\&.0\&.15\&.gbbe21b6" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-credential-cache \- Helper to temporarily store passwords in memory
35 git config credential\&.helper \(aqcache [<options>]\(aq
40 This command caches credentials in memory for use by future Git programs\&. The stored credentials never touch the disk, and are forgotten after a configurable timeout\&. The cache is accessible over a Unix domain socket, restricted to the current user by filesystem permissions\&.
42 You probably don\(cqt want to invoke this command directly; it is meant to be used as a credential helper by other parts of Git\&. See \fBgitcredentials\fR(7) or \fBEXAMPLES\fR below\&.
47 Number of seconds to cache credentials (default: 900)\&.
54 to contact a running cache daemon (or start a new cache daemon if one is not started)\&. Defaults to
55 \fB$XDG_CACHE_HOME/git/credential/socket\fR
57 \fB~/\&.git\-credential\-cache/\fR
59 \fB~/\&.git\-credential\-cache/socket\fR
60 is used instead\&. If your home directory is on a network\-mounted filesystem, you may need to change this to a local filesystem\&. You must specify an absolute path\&.
62 .SH "CONTROLLING THE DAEMON"
64 If you would like the daemon to exit early, forgetting all cached credentials before their timeout, you can issue an \fBexit\fR action:
70 git credential\-cache exit
78 The point of this helper is to reduce the number of times you must type your username or password\&. For example:
84 $ git config credential\&.helper cache
85 $ git push http://example\&.com/repo\&.git
86 Username: <type your username>
87 Password: <type your password>
89 [work for 5 more minutes]
90 $ git push http://example\&.com/repo\&.git
91 [your credentials are used automatically]
98 You can provide options via the credential\&.helper configuration variable (this example drops the cache time to 5 minutes):
104 $ git config credential\&.helper \(aqcache \-\-timeout=300\(aq
112 Part of the \fBgit\fR(1) suite