Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
- 2.50.1 → 2.51.1 no changes
-
2.50.0
2025-06-16
- 2.43.1 → 2.49.1 no changes
-
2.43.0
2023-11-20
- 2.42.1 → 2.42.4 no changes
-
2.42.0
2023-08-21
- 2.40.1 → 2.41.3 no changes
-
2.40.0
2023-03-12
- 2.39.1 → 2.39.5 no changes
-
2.39.0
2022-12-12
- 2.35.1 → 2.38.5 no changes
-
2.35.0
2022-01-24
- 2.18.1 → 2.34.8 no changes
-
2.18.0
2018-06-21
- 2.1.4 → 2.17.6 no changes
-
2.0.5
2014-12-17
变量
-
GIT_AUTHOR_IDENT -
一段代码的作者。
-
GIT_COMMITTER_IDENT -
将代码放入 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$GIT_EDITOR, thencore.editorconfiguration value, then$VISUAL, then$EDITOR, and then the default chosen at compile time, which is usually vi. -
GIT_SEQUENCE_EDITOR -
Text editor used to edit the todo file while running
gitrebase-i. LikeGIT_EDITOR, the value is meant to be interpreted by the shell when it is used. The order of preference is$GIT_SEQUENCE_EDITOR, thensequence.editorconfiguration value, and then the value ofgitvarGIT_EDITOR. -
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
$GIT_PAGER, then the value ofcore.pagerconfiguration, then$PAGER, and then the default chosen at compile time (usuallyless). -
GIT_DEFAULT_BRANCH -
在新初始化的仓库中创建的第一个分支的名称。
-
GIT_SHELL_PATH -
为使用 shell 的命令提供 POSIX shell 的二进制文件路径。
-
GIT_ATTR_SYSTEM -
系统 gitattributes[5] 文件的路径(如果已启用)。
-
GIT_ATTR_GLOBAL -
全局(每个用户)gitattributes[5] 文件的路径。
-
GIT_CONFIG_SYSTEM -
系统配置文件的路径(如果已启用)。
-
GIT_CONFIG_GLOBAL -
全局(按用户)配置文件的路径(如果有)。
大多数路径值只包含一个值。不过,有些路径值可能包含多个值,这些值之间用换行分隔,并按优先级从高到低排列。 调用者应做好任何此类路径值包含多个项目的准备。
请注意,即使路径不存在,也会打印出来,但如果路径被其他环境变量禁用,则不会打印出来。
GIT
属于 git[1] 文档