1 git-credential-getpass(1)
2 =========================
6 git-credential-getpass - helper to request credentials from a user
11 git credential-getpass
16 This command requests credentials from the user using git's "default"
17 scheme, including asking via the terminal and respecting the
18 `GIT_ASKPASS` environment variable; see linkgit:gitcredentials[7] for a
19 complete description. The helpers are provided on stdout using git's
20 credential helper protocol.
22 There is no point in using this program as a credential helper by
23 itself; it is exactly equivalent to git's behavior when no helper is
26 However, writers of third-party helpers may want to invoke this program
27 to simulate git's behavior.
32 Here's a simple, silly example of a helper that stores credentials on
33 disk (similar to linkgit:git-credential-store[1]), and how it could use
36 -------------------------------------------
39 STORAGE=$HOME/.credentials
44 unique=${i#--unique=} ;;
48 if ! test -e "$STORAGE/$unique"; then
49 mkdir -m 0700 "$STORAGE"
50 git credential-getpass "$@" >"$STORAGE/$unique"
53 cat "$STORAGE/$unique"
54 -------------------------------------------
58 Part of the linkgit:git[1] suite