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.40.0.rc2
10 .TH "GIT\-VAR" "1" "03/06/2023" "Git 2\&.40\&.0\&.rc2" "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-var \- Show a Git logical variable
35 \fIgit var\fR (\-l | <variable>)
40 Prints a Git logical variable\&. Exits with code 1 if the variable has no value\&.
45 Cause the logical variables to be listed\&. In addition, all the variables of the Git configuration file \&.git/config are listed as well\&. (However, the configuration variables listing functionality is deprecated in favor of
46 \fBgit config \-l\fR\&.)
54 $ git var GIT_AUTHOR_IDENT
55 Eric W\&. Biederman <ebiederm@lnxi\&.com> 1121223278 \-0600
64 The author of a piece of code\&.
69 The person who put a piece of code into Git\&.
74 Text editor for use by Git commands\&. The value is meant to be interpreted by the shell when it is used\&. Examples:
76 \fB$SOME_ENVIRONMENT_VARIABLE\fR,
77 \fB"C:\eProgram Files\eVim\egvim\&.exe" \-\-nofork\fR\&. The order of preference is the
79 environment variable, then
83 \fB$EDITOR\fR, and then the default chosen at compile time, which is usually
89 Text editor used to edit the
92 \fBgit rebase \-i\fR\&. Like
93 \fBGIT_EDITOR\fR, the value is meant to be interpreted by the shell when it is used\&. The order of preference is the
94 \fB$GIT_SEQUENCE_EDITOR\fR
95 environment variable, then
96 \fBsequence\&.editor\fR
97 configuration, and then the value of
98 \fBgit var GIT_EDITOR\fR\&.
103 Text viewer for use by Git commands (e\&.g\&.,
104 \fIless\fR)\&. The value is meant to be interpreted by the shell\&. The order of preference is the
106 environment variable, then
109 \fB$PAGER\fR, and then the default chosen at compile time (usually
115 The name of the first branch created in newly initialized repositories\&.
119 \fBgit-commit-tree\fR(1) \fBgit-tag\fR(1) \fBgit-config\fR(1)
122 Part of the \fBgit\fR(1) suite