blob: 6072f936ab5e3a8b3aeafcaeddd81b7b6d5e0b01 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-var(1)
2==========
3
4NAME
5----
Junio C Hamano076ffcc2013-02-06 05:13:216git-var - Show a Git logical variable
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamano4aa0bcc2010-03-03 05:13:1212'git var' ( -l | <variable> )
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
Junio C Hamano076ffcc2013-02-06 05:13:2116Prints a Git logical variable.
Junio C Hamano1a4e8412005-12-27 08:17:2317
18OPTIONS
19-------
20-l::
Junio C Hamano07824ce2006-04-25 07:36:5421Cause the logical variables to be listed. In addition, all the
Junio C Hamano076ffcc2013-02-06 05:13:2122variables of the Git configuration file .git/config are listed
Junio C Hamano6de0ecd2006-04-27 20:10:4323as well. (However, the configuration variables listing functionality
Junio C Hamano1aa40d22010-01-21 17:46:4324is deprecated in favor of `git config -l`.)
Junio C Hamano1a4e8412005-12-27 08:17:2325
Junio C Hamanob9d9d902018-05-23 07:07:4226EXAMPLES
Junio C Hamano1a4e8412005-12-27 08:17:2327--------
Junio C Hamanofce7c7e2008-07-02 03:06:3828$ git var GIT_AUTHOR_IDENT
Junio C Hamano1a4e8412005-12-27 08:17:2329Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
30
31
32VARIABLES
Junio C Hamanob9d9d902018-05-23 07:07:4233---------
Junio C Hamano1a4e8412005-12-27 08:17:2334GIT_AUTHOR_IDENT::
35 The author of a piece of code.
36
37GIT_COMMITTER_IDENT::
Junio C Hamano076ffcc2013-02-06 05:13:2138 The person who put a piece of code into Git.
Junio C Hamano1a4e8412005-12-27 08:17:2339
Junio C Hamano3b70d3c2009-11-21 17:37:3740GIT_EDITOR::
Junio C Hamano076ffcc2013-02-06 05:13:2141 Text editor for use by Git commands. The value is meant to be
Junio C Hamano3b70d3c2009-11-21 17:37:3742 interpreted by the shell when it is used. Examples: `~/bin/vi`,
43 `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
44 --nofork`. The order of preference is the `$GIT_EDITOR`
45 environment variable, then `core.editor` configuration, then
Junio C Hamano4eda1362012-04-23 20:55:4946 `$VISUAL`, then `$EDITOR`, and then the default chosen at compile
47 time, which is usually 'vi'.
48ifdef::git-default-editor[]
49 The build you are using chose '{git-default-editor}' as the default.
50endif::git-default-editor[]
Junio C Hamano3b70d3c2009-11-21 17:37:3751
52GIT_PAGER::
Junio C Hamano076ffcc2013-02-06 05:13:2153 Text viewer for use by Git commands (e.g., 'less'). The value
Junio C Hamano3b70d3c2009-11-21 17:37:3754 is meant to be interpreted by the shell. The order of preference
55 is the `$GIT_PAGER` environment variable, then `core.pager`
Junio C Hamano4eda1362012-04-23 20:55:4956 configuration, then `$PAGER`, and then the default chosen at
57 compile time (usually 'less').
58ifdef::git-default-pager[]
59 The build you are using chose '{git-default-pager}' as the default.
60endif::git-default-pager[]
Junio C Hamano3b70d3c2009-11-21 17:37:3761
Junio C Hamano9049d912008-05-29 02:09:5062SEE ALSO
Junio C Hamano1a4e8412005-12-27 08:17:2363--------
Junio C Hamano35738e82008-01-07 07:55:4664linkgit:git-commit-tree[1]
65linkgit:git-tag[1]
66linkgit:git-config[1]
Junio C Hamano1a4e8412005-12-27 08:17:2367
Junio C Hamano1a4e8412005-12-27 08:17:2368GIT
69---
Junio C Hamanof7c042d2008-06-06 22:50:5370Part of the linkgit:git[1] suite