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.47.0.rc0
10 .TH "GIT\-VAR" "1" "2024-09-25" "Git 2\&.47\&.0\&.rc0" "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>)
39 Prints a Git logical variable\&. Exits with code 1 if the variable has no value\&.
44 Display the logical variables\&. 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
45 \fBgit config \-l\fR\&.)
53 $ git var GIT_AUTHOR_IDENT
54 Eric W\&. Biederman <ebiederm@lnxi\&.com> 1121223278 \-0600
63 The author of a piece of code\&.
68 The person who put a piece of code into Git\&.
73 Text editor for use by Git commands\&. The value is meant to be interpreted by the shell when it is used\&. Examples:
75 \fB$SOME_ENVIRONMENT_VARIABLE\fR,
76 \fB"C:\eProgram Files\eVim\egvim\&.exe" \-\-nofork\fR\&. The order of preference is the
78 environment variable, then
82 \fB$EDITOR\fR, and then the default chosen at compile time, which is usually
88 Text editor used to edit the
91 \fBgit rebase \-i\fR\&. Like
92 \fBGIT_EDITOR\fR, the value is meant to be interpreted by the shell when it is used\&. The order of preference is the
93 \fB$GIT_SEQUENCE_EDITOR\fR
94 environment variable, then
95 \fBsequence\&.editor\fR
96 configuration, and then the value of
97 \fBgit var GIT_EDITOR\fR\&.
102 Text viewer for use by Git commands (e\&.g\&.,
103 \fIless\fR)\&. The value is meant to be interpreted by the shell\&. The order of preference is the
105 environment variable, then
108 \fB$PAGER\fR, and then the default chosen at compile time (usually
114 The name of the first branch created in newly initialized repositories\&.
119 The path of the binary providing the POSIX shell for commands which use the shell\&.
124 The path to the system
125 \fBgitattributes\fR(5)
126 file, if one is enabled\&.
131 The path to the global (per\-user)
132 \fBgitattributes\fR(5)
138 The path to the system configuration file, if one is enabled\&.
143 The path to the global (per\-user) configuration files, if any\&.
146 Most path values contain only one value\&. However, some can contain multiple values, which are separated by newlines, and are listed in order from highest to lowest priority\&. Callers should be prepared for any such path value to contain multiple items\&.
148 Note that paths are printed even if they do not exist, but not if they are disabled by other environment variables\&.
151 \fBgit-commit-tree\fR(1) \fBgit-tag\fR(1) \fBgit-config\fR(1)
154 Part of the \fBgit\fR(1) suite