From: Amin Bandali Date: Sun, 20 Nov 2022 03:15:37 +0000 (-0500) Subject: * .config/git/config: Set defaultBranch to main. X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/093efbaf0b2d237e6d552738da89c7752c319475?ds=inline * .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. --- 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 diff --git a/.config/git/template/HEAD b/.config/git/template/HEAD deleted file mode 100644 index 6c4e0e7..0000000 --- a/.config/git/template/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/head/main