1git-var(1) 2========== 3 4NAME 5---- 6git-var - Show a git logical variable 7 8 9SYNOPSIS 10-------- 11'git var' [ -l | <variable> ] 12 13DESCRIPTION 14----------- 15Prints a git logical variable. 16 17OPTIONS 18------- 19-l:: 20 Cause the logical variables to be listed. In addition, all the 21 variables of the git configuration file .git/config are listed 22 as well. (However, the configuration variables listing functionality 23 is deprecated in favor of 'git config -l'.) 24 25EXAMPLE 26-------- 27 $ git var GIT_AUTHOR_IDENT 28 Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600 29 30 31VARIABLES 32---------- 33GIT_AUTHOR_IDENT:: 34 The author of a piece of code. 35 36GIT_COMMITTER_IDENT:: 37 The person who put a piece of code into git. 38 39GIT_EDITOR:: 40 Text editor for use by git commands. The value is meant to be 41 interpreted 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` 44 environment variable, then `core.editor` configuration, then 45 `$VISUAL`, then `$EDITOR`, and then finally 'vi'. 46 47Diagnostics 48----------- 49You don't exist. Go away!:: 50 The passwd(5) gecos field couldn't be read 51Your parents must have hated you!:: 52 The passwd(5) gecos field is longer than a giant static buffer. 53Your sysadmin must hate you!:: 54 The passwd(5) name field is longer than a giant static buffer. 55 56SEE ALSO 57-------- 58linkgit:git-commit-tree[1] 59linkgit:git-tag[1] 60linkgit:git-config[1] 61 62Author 63------ 64Written by Eric Biederman <ebiederm@xmission.com> 65 66Documentation 67-------------- 68Documentation by Eric Biederman and the git-list <git@vger.kernel.org>. 69 70GIT 71--- 72Part of the linkgit:git[1] suite