git: use 'main' for default branch name for new repos
authorAmin Bandali <bandali@kelar.org>
Fri, 29 Apr 2022 23:34:52 +0000 (19:34 -0400)
committerAmin Bandali <bandali@kelar.org>
Fri, 20 May 2022 02:19:57 +0000 (22:19 -0400)
.config/git/config
.config/git/template/HEAD [new file with mode: 0644]

index 04a83fb..35aba9d 100644 (file)
@@ -64,3 +64,5 @@
 
 [transfer]
        fsckObjects = true
+[init]
+       templateDir = ~/.config/git/template
diff --git a/.config/git/template/HEAD b/.config/git/template/HEAD
new file mode 100644 (file)
index 0000000..6c4e0e7
--- /dev/null
@@ -0,0 +1 @@
+ref: refs/head/main