From 093efbaf0b2d237e6d552738da89c7752c319475 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 19 Nov 2022 22:15:37 -0500 Subject: * .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. --- .config/git/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/git/config') 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 -- cgit v1.2.3-60-g2f50