1GIT-VAR(1) Git Manual GIT-VAR(1)
2
3
4
6 git-var - Show a Git logical variable
7
9 git var (-l | <variable>)
10
12 Prints a Git logical variable.
13
15 -l
16 Cause the logical variables to be listed. In addition, all the
17 variables of the Git configuration file .git/config are listed as
18 well. (However, the configuration variables listing functionality
19 is deprecated in favor of git config -l.)
20
22 $ git var GIT_AUTHOR_IDENT
23 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
24
26 GIT_AUTHOR_IDENT
27 The author of a piece of code.
28
29 GIT_COMMITTER_IDENT
30 The person who put a piece of code into Git.
31
32 GIT_EDITOR
33 Text editor for use by Git commands. The value is meant to be
34 interpreted by the shell when it is used. Examples: ~/bin/vi,
35 $SOME_ENVIRONMENT_VARIABLE, "C:\Program Files\Vim\gvim.exe"
36 --nofork. The order of preference is the $GIT_EDITOR environment
37 variable, then core.editor configuration, then $VISUAL, then
38 $EDITOR, and then the default chosen at compile time, which is
39 usually vi.
40
41 GIT_PAGER
42 Text viewer for use by Git commands (e.g., less). The value is
43 meant to be interpreted by the shell. The order of preference is
44 the $GIT_PAGER environment variable, then core.pager configuration,
45 then $PAGER, and then the default chosen at compile time (usually
46 less).
47
48 GIT_DEFAULT_BRANCH
49 The name of the first branch created in newly initialized
50 repositories.
51
53 git-commit-tree(1) git-tag(1) git-config(1)
54
56 Part of the git(1) suite
57
58
59
60Git 2.39.1 2023-01-13 GIT-VAR(1)