NAME
git-var - Show a Git logical variable
SYNOPSIS
git var\n (-l | <variable>)DESCRIPTION
Prints a Git logical variable. Exits with code 1 if the variable has no value.
OPTIONS
-l
EXAMPLES
$ git var GIT_AUTHOR_IDENT
Eric W. Biederman <[email protected]> 1121223278 -0600VARIABLES
GIT_AUTHOR_IDENT
GIT_COMMITTER_IDENT
GIT_EDITOR
GIT_SEQUENCE_EDITOR
GIT_PAGER
GIT_DEFAULT_BRANCH
GIT_SHELL_PATH
GIT_ATTR_SYSTEM
GIT_ATTR_GLOBAL
GIT_CONFIG_SYSTEM
GIT_CONFIG_GLOBAL
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.
Note that paths are printed even if they do not exist, but not if they are disabled by other environment variables.
SEE ALSO
git-commit-tree(1) git-tag(1) git-config(1)
GIT
Part of the git(1) suite