1git-var(1)
2==========
34
NAME
5----
6git-var - Show a git logical variable
78
9
SYNOPSIS
10--------
11'git var' [ -l | <variable> ]
1213
DESCRIPTION
14-----------
15Prints a git logical variable.
1617
OPTIONS
18-------
19-l::
20Cause the logical variables to be listed. In addition, all the
21variables of the git configuration file .git/config are listed
22as well. (However, the configuration variables listing functionality
23is deprecated in favor of 'git config -l'.)
2425
EXAMPLE
26--------
27$ git var GIT_AUTHOR_IDENT
28Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
2930
31
VARIABLES
32----------
33GIT_AUTHOR_IDENT::
34The author of a piece of code.
3536
GIT_COMMITTER_IDENT::
37The person who put a piece of code into git.
3839
GIT_EDITOR::
40Text editor for use by git commands. The value is meant to be
41interpreted by the shell when it is used. Examples: `~/bin/vi`,
42`$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
43--nofork`. The order of preference is the `$GIT_EDITOR`
44environment variable, then `core.editor` configuration, then
45`$VISUAL`, then `$EDITOR`, and then finally 'vi'.
4647
GIT_PAGER::
48Text viewer for use by git commands (e.g., 'less'). The value
49is meant to be interpreted by the shell. The order of preference
50is the `$GIT_PAGER` environment variable, then `core.pager`
51configuration, then `$PAGER`, and then finally 'less'.
5253
Diagnostics
54-----------
55You don't exist. Go away!::
56The passwd(5) gecos field couldn't be read
57Your parents must have hated you!::
58The passwd(5) gecos field is longer than a giant static buffer.
59Your sysadmin must hate you!::
60The passwd(5) name field is longer than a giant static buffer.
6162
SEE ALSO
63--------
64linkgit:git-commit-tree[1]
65linkgit:git-tag[1]
66linkgit:git-config[1]
6768
Author
69------
70Written by Eric Biederman <ebiederm@xmission.com>
7172
Documentation
73--------------
74Documentation by Eric Biederman and the git-list <git@vger.kernel.org>.
7576
GIT
77---
78Part of the linkgit:git[1] suite