English ▾ Topics ▾ Latest version ▾ git-var last updated in 2.43.0

NAME

git-var - Show a Git logical variable

SYNOPSIS

git var (-l | <variable>)

DESCRIPTION

Prints a Git logical variable. Exits with code 1 if the variable has no value.

OPTIONS

-l

Display the logical variables. In addition, all the variables of the Git configuration file .git/config are listed as well. (However, the configuration variables listing functionality is deprecated in favor of git config -l.)

EXAMPLES

$ git var GIT_AUTHOR_IDENT
Eric W. Biederman <ebiederm@lnxi.com> 1121223278 -0600

VARIABLES