| 1 | :see-git-init: |
| 2 | ifndef::git-init[] |
| 3 | :see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) |
| 4 | endif::[] |
| 5 | |
| 6 | `init.templateDir`:: |
| 7 | Specify the directory from which templates will be copied. {see-git-init} |
| 8 | `init.defaultBranch`:: |
| 9 | Allows overriding the default branch name e.g. when initializing |
| 10 | a new repository. |
| 11 | `init.defaultObjectFormat`:: |
| 12 | Allows overriding the default object format for new repositories. See |
| 13 | `--object-format=` in linkgit:git-init[1]. Both the command line option |
| 14 | and the `GIT_DEFAULT_HASH` environment variable take precedence over |
| 15 | this config. |
| 16 | `init.defaultRefFormat`:: |
| 17 | Allows overriding the default ref storage format for new repositories. |
| 18 | See `--ref-format=` in linkgit:git-init[1]. Both the command line |
| 19 | option and the `GIT_DEFAULT_REF_FORMAT` environment variable take |
| 20 | precedence over this config. |
| 21 | |
| 22 | init.defaultSubmodulePathConfig:: |
| 23 | A boolean that specifies if `git init` and `git clone` should |
| 24 | automatically set `extensions.submodulePathConfig` to `true`. This |
| 25 | allows all new repositories to automatically use the submodule path |
| 26 | extension. Defaults to `false` when unset. |