summaryrefslogtreecommitdiffstats
path: root/.config/git/config
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2022-11-19 22:15:37 -0500
committerAmin Bandali <bandali@gnu.org>2022-11-19 22:15:37 -0500
commit093efbaf0b2d237e6d552738da89c7752c319475 (patch)
treee98d57a075ece1c5ea8a703d3f3091f367554ac0 /.config/git/config
parentb5dea93399fd4df7089ad90b6e2961d92f67eb5a (diff)
downloadconfigs-093efbaf0b2d237e6d552738da89c7752c319475.tar.gz
configs-093efbaf0b2d237e6d552738da89c7752c319475.tar.xz
configs-093efbaf0b2d237e6d552738da89c7752c319475.zip
* .config/git/config: Set defaultBranch to main.
Supported as of git 2.28. The previous approach of using a template directory would work on a wider range of older git versions, but it would result in git not creating any files/directories (like hooks/) in a repo's .git directory e.g. after clones or initializations.
Diffstat (limited to '.config/git/config')
-rw-r--r--.config/git/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/git/config b/.config/git/config
index 7db0f89..afa03c0 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -70,4 +70,4 @@
fsckObjects = true
[init]
- templateDir = ~/.config/git/template
+ defaultBranch = main