Home Explore Blog CI



git

1st chunk of `Documentation/config/init.adoc`
b655bd7a362f96223eee26c155f6ad0d216f1c52ec42bdfd000000010000034e
: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.

Title: Git Init Configuration Options
Summary
This section describes configuration options related to git initialization, including template directory, default branch name, object format, and ref storage format, which can be used to customize the behavior of git init command, allowing users to override default settings and specify custom preferences for new repositories.