commit 9f8d37dfb7b5c186f6c90a5e5365789448bd1bcb (patch)
parent 6b6391b473196b8f8d9cab7fab9d603aedb198cd
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 23 May 2021 21:29:55 -0400
git: Add defaultBranch setting
Newer versions of git throw a big warning on git-init if there is no
defaultBranch setting.
So far, most of my repos still use master, but I suppose now's as good a
time as any to move to main going forward.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.config/git/config b/.config/git/config
@@ -24,3 +24,5 @@
rs = reset
p = push
b = branch
+[init]
+ defaultBranch = main