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 +- .config/git/template/HEAD | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 .config/git/template/HEAD (limited to '.config/git') 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 -- cgit v1.2.3-60-g2f50