logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

git-var.1 (4407B)


  1. '\" t
  2. .\" Title: git-var
  3. .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
  5. .\" Date: 2025-03-14
  6. .\" Manual: Git Manual
  7. .\" Source: Git 2.49.0
  8. .\" Language: English
  9. .\"
  10. .TH "GIT\-VAR" "1" "2025-03-14" "Git 2\&.49\&.0" "Git Manual"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. git-var \- Show a Git logical variable
  32. .SH "SYNOPSIS"
  33. .sp
  34. .nf
  35. \fIgit var\fR (\-l | <variable>)
  36. .fi
  37. .SH "DESCRIPTION"
  38. .sp
  39. Prints a Git logical variable\&. Exits with code 1 if the variable has no value\&.
  40. .SH "OPTIONS"
  41. .PP
  42. \-l
  43. .RS 4
  44. 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
  45. \fBgit\fR
  46. \fBconfig\fR
  47. \fB\-l\fR\&.)
  48. .RE
  49. .SH "EXAMPLES"
  50. .sp
  51. .if n \{\
  52. .RS 4
  53. .\}
  54. .nf
  55. $ git var GIT_AUTHOR_IDENT
  56. Eric W\&. Biederman <ebiederm@lnxi\&.com> 1121223278 \-0600
  57. .fi
  58. .if n \{\
  59. .RE
  60. .\}
  61. .SH "VARIABLES"
  62. .PP
  63. GIT_AUTHOR_IDENT
  64. .RS 4
  65. The author of a piece of code\&.
  66. .RE
  67. .PP
  68. GIT_COMMITTER_IDENT
  69. .RS 4
  70. The person who put a piece of code into Git\&.
  71. .RE
  72. .PP
  73. GIT_EDITOR
  74. .RS 4
  75. Text editor for use by Git commands\&. The value is meant to be interpreted by the shell when it is used\&. Examples:
  76. \fB~/bin/vi\fR,
  77. \fB$SOME_ENVIRONMENT_VARIABLE\fR, "C:\eProgram
  78. \fBFiles\fR\eVim\egvim\&.\fBexe\fR"
  79. \fB\-\-nofork\fR\&. The order of preference is the
  80. \fB$GIT_EDITOR\fR
  81. environment variable, then
  82. \fBcore\&.editor\fR
  83. configuration, then
  84. \fB$VISUAL\fR, then
  85. \fB$EDITOR\fR, and then the default chosen at compile time, which is usually
  86. \fIvi\fR\&.
  87. .RE
  88. .PP
  89. GIT_SEQUENCE_EDITOR
  90. .RS 4
  91. Text editor used to edit the
  92. \fItodo\fR
  93. file while running
  94. \fBgit\fR
  95. \fBrebase\fR
  96. \fB\-i\fR\&. Like
  97. \fBGIT_EDITOR\fR, the value is meant to be interpreted by the shell when it is used\&. The order of preference is the
  98. \fB$GIT_SEQUENCE_EDITOR\fR
  99. environment variable, then
  100. \fBsequence\&.editor\fR
  101. configuration, and then the value of
  102. \fBgit\fR
  103. \fBvar\fR
  104. \fBGIT_EDITOR\fR\&.
  105. .RE
  106. .PP
  107. GIT_PAGER
  108. .RS 4
  109. Text viewer for use by Git commands (e\&.g\&.,
  110. \fIless\fR)\&. The value is meant to be interpreted by the shell\&. The order of preference is the
  111. \fB$GIT_PAGER\fR
  112. environment variable, then
  113. \fBcore\&.pager\fR
  114. configuration, then
  115. \fB$PAGER\fR, and then the default chosen at compile time (usually
  116. \fIless\fR)\&.
  117. .RE
  118. .PP
  119. GIT_DEFAULT_BRANCH
  120. .RS 4
  121. The name of the first branch created in newly initialized repositories\&.
  122. .RE
  123. .PP
  124. GIT_SHELL_PATH
  125. .RS 4
  126. The path of the binary providing the POSIX shell for commands which use the shell\&.
  127. .RE
  128. .PP
  129. GIT_ATTR_SYSTEM
  130. .RS 4
  131. The path to the system
  132. \fBgitattributes\fR(5)
  133. file, if one is enabled\&.
  134. .RE
  135. .PP
  136. GIT_ATTR_GLOBAL
  137. .RS 4
  138. The path to the global (per\-user)
  139. \fBgitattributes\fR(5)
  140. file\&.
  141. .RE
  142. .PP
  143. GIT_CONFIG_SYSTEM
  144. .RS 4
  145. The path to the system configuration file, if one is enabled\&.
  146. .RE
  147. .PP
  148. GIT_CONFIG_GLOBAL
  149. .RS 4
  150. The path to the global (per\-user) configuration files, if any\&.
  151. .RE
  152. .sp
  153. 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\&.
  154. .sp
  155. Note that paths are printed even if they do not exist, but not if they are disabled by other environment variables\&.
  156. .SH "SEE ALSO"
  157. .sp
  158. \fBgit-commit-tree\fR(1) \fBgit-tag\fR(1) \fBgit-config\fR(1)
  159. .SH "GIT"
  160. .sp
  161. Part of the \fBgit\fR(1) suite