2 .\" Title: git-credential-cache
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.46.1.506.ged155187b4
10 .TH "GIT\-CREDENTIAL\-CACHE" "1" "2024-09-13" "Git 2\&.46\&.1\&.506\&.ged1551" "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
39 This command caches credentials for use by future Git programs\&. The stored credentials are kept in memory of the cache\-daemon process (instead of being written to a file) and are forgotten after a configurable timeout\&. Credentials are forgotten sooner if the cache\-daemon dies, for example if the system restarts\&. The cache is accessible over a Unix domain socket, restricted to the current user by filesystem permissions\&.
41 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\&.
46 Number of seconds to cache credentials (default: 900)\&.
53 to contact a running cache daemon (or start a new cache daemon if one is not started)\&. Defaults to
54 \fB$XDG_CACHE_HOME/git/credential/socket\fR
56 \fB~/\&.git\-credential\-cache/\fR
58 \fB~/\&.git\-credential\-cache/socket\fR
59 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\&.
61 .SH "CONTROLLING THE DAEMON"
63 If you would like the daemon to exit early, forgetting all cached credentials before their timeout, you can issue an \fBexit\fR action:
69 git credential\-cache exit
76 The point of this helper is to reduce the number of times you must type your username or password\&. For example:
82 $ git config credential\&.helper cache
83 $ git push http://example\&.com/repo\&.git
84 Username: <type your username>
85 Password: <type your password>
87 [work for 5 more minutes]
88 $ git push http://example\&.com/repo\&.git
89 [your credentials are used automatically]
95 You can provide options via the credential\&.helper configuration variable (this example increases the cache time to 1 hour):
101 $ git config credential\&.helper \*(Aqcache \-\-timeout=3600\*(Aq
108 Part of the \fBgit\fR(1) suite