English ▾
Localized versions of git-var manual
  1. English
  2. Português (Brasil)
  3. українська мова
  4. 简体中文
Topics ▾ Version 2.35.0 ▾ git-var last updated in 2.50.0
Changes in the git-var manual
  1. 2.50.1 → 2.52.0 no changes
  2. 2.50.0 2025年06月16日
  3. 2.43.1 → 2.49.1 no changes
  4. 2.43.0 2023年11月20日
  5. 2.42.1 → 2.42.4 no changes
  6. 2.42.0 2023年08月21日
  7. 2.40.1 → 2.41.3 no changes
  8. 2.40.0 2023年03月12日
  9. 2.39.1 → 2.39.5 no changes
  10. 2.39.0 2022年12月12日
  11. 2.35.1 → 2.38.5 no changes
  12. 2.35.0 2022年01月24日
  13. 2.18.1 → 2.34.8 no changes
  14. 2.18.0 2018年06月21日
  15. 2.1.4 → 2.17.6 no changes
  16. 2.0.5 2014年12月17日

Check your version of git by running

git --version

NAME

git-var - Show a Git logical variable

SYNOPSIS

git var ( -l | <variable> )

DESCRIPTION

Prints a Git logical variable.

OPTIONS

-l

Cause the logical variables to be listed. 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

GIT_AUTHOR_IDENT

The author of a piece of code.

GIT_COMMITTER_IDENT

The person who put a piece of code into Git.

GIT_EDITOR

Text editor for use by Git commands. The value is meant to be 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 $VISUAL, then $EDITOR, and then the default chosen at compile time, which is usually vi.

GIT_PAGER

Text viewer for use by Git commands (e.g., less). The value is meant to be interpreted by the shell. The order of preference is the $GIT_PAGER environment variable, then core.pager configuration, then $PAGER, and then the default chosen at compile time (usually less).

GIT_DEFAULT_BRANCH

The name of the first branch created in newly initialized repositories.

GIT

Part of the git[1] suite

AltStyle によって変換されたページ (->オリジナル) /