summaryrefslogtreecommitdiff
path: root/Documentation/config/init.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/config/init.adoc')
-rw-r--r--Documentation/config/init.adoc20
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/config/init.adoc b/Documentation/config/init.adoc
new file mode 100644
index 0000000000..e45b2a8121
--- /dev/null
+++ b/Documentation/config/init.adoc
@@ -0,0 +1,20 @@
+:see-git-init:
+ifndef::git-init[]
+:see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
+endif::[]
+
+`init.templateDir`::
+ Specify the directory from which templates will be copied. {see-git-init}
+`init.defaultBranch`::
+ Allows overriding the default branch name e.g. when initializing
+ a new repository.
+`init.defaultObjectFormat`::
+ Allows overriding the default object format for new repositories. See
+ `--object-format=` in linkgit:git-init[1]. Both the command line option
+ and the `GIT_DEFAULT_HASH` environment variable take precedence over
+ this config.
+`init.defaultRefFormat`::
+ Allows overriding the default ref storage format for new repositories.
+ See `--ref-format=` in linkgit:git-init[1]. Both the command line
+ option and the `GIT_DEFAULT_REF_FORMAT` environment variable take
+ precedence over this config.