git-var.txt 1.8 KB
Newer Older
1
git-var(1)
Linus Torvalds's avatar
Linus Torvalds committed
2
==========
3 4 5

NAME
----
6
git-var - Show a Git logical variable
7 8 9 10


SYNOPSIS
--------
11
[verse]
12
'git var' ( -l | <variable> )
13 14 15

DESCRIPTION
-----------
16
Prints a Git logical variable.
17

18 19 20
OPTIONS
-------
-l::
21
	Cause the logical variables to be listed. In addition, all the
22
	variables of the Git configuration file .git/config are listed
23
	as well. (However, the configuration variables listing functionality
24
	is deprecated in favor of `git config -l`.)
25 26 27

EXAMPLE
--------
28
	$ git var GIT_AUTHOR_IDENT
29
	Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600
30 31 32 33


VARIABLES
----------
34
GIT_AUTHOR_IDENT::
35 36
    The author of a piece of code.

37
GIT_COMMITTER_IDENT::
38
    The person who put a piece of code into Git.
39

40
GIT_EDITOR::
41
    Text editor for use by Git commands.  The value is meant to be
42 43 44 45
    interpreted by the shell when it is used.  Examples: `~/bin/vi`,
    `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
    --nofork`.  The order of preference is the `$GIT_EDITOR`
    environment variable, then `core.editor` configuration, then
46 47
    `$VISUAL`, then `$EDITOR`, and then the default chosen at compile
    time, which is usually 'vi'.
48 49 50
ifdef::git-default-editor[]
    The build you are using chose '{git-default-editor}' as the default.
endif::git-default-editor[]
51

52
GIT_PAGER::
53
    Text viewer for use by Git commands (e.g., 'less').  The value
54 55
    is meant to be interpreted by the shell.  The order of preference
    is the `$GIT_PAGER` environment variable, then `core.pager`
56 57
    configuration, then `$PAGER`, and then the default chosen at
    compile time (usually 'less').
58 59 60
ifdef::git-default-pager[]
    The build you are using chose '{git-default-pager}' as the default.
endif::git-default-pager[]
61

62
SEE ALSO
63
--------
64 65 66
linkgit:git-commit-tree[1]
linkgit:git-tag[1]
linkgit:git-config[1]
67 68 69

GIT
---
70
Part of the linkgit:git[1] suite