summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-12-10 14:35:07 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-10 14:35:07 -0800
commit03194a1afa0d8dbcf3e556aa51cf9118f38efb2e (patch)
treeca5a1235d16a23c0ee06cca09845ff4abe2acf6d /Documentation
parentMerge branch 'jk/strbuf-addftime-seconds-since-epoch' (diff)
parentvar: add GIT_DEFAULT_BRANCH variable (diff)
downloadtgif-03194a1afa0d8dbcf3e556aa51cf9118f38efb2e.tar.xz
Merge branch 'tw/var-default-branch'
"git var GIT_DEFAULT_BRANCH" is a way to see what name is used for the newly created branch if "git init" is run. * tw/var-default-branch: var: add GIT_DEFAULT_BRANCH variable
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-var.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt
index 6072f936ab..387cc1b914 100644
--- a/Documentation/git-var.txt
+++ b/Documentation/git-var.txt
@@ -59,6 +59,9 @@ ifdef::git-default-pager[]
The build you are using chose '{git-default-pager}' as the default.
endif::git-default-pager[]
+GIT_DEFAULT_BRANCH::
+ The name of the first branch created in newly initialized repositories.
+
SEE ALSO
--------
linkgit:git-commit-tree[1]