From 9f8d37dfb7b5c186f6c90a5e5365789448bd1bcb Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 23 May 2021 21:29:55 -0400 Subject: [PATCH] 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. --- .config/git/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/git/config b/.config/git/config index f33bc75..8908b95 100644 --- a/.config/git/config +++ b/.config/git/config @@ -24,3 +24,5 @@ rs = reset p = push b = branch +[init] + defaultBranch = main -- libgit2 0.28.4