From 19796dcaeaf5d7d223e0c38c8f9315a44b9b16d7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 23 Aug 2021 14:17:29 -0700 Subject: git: for new repo, use 'main' for default branch Sort branches by date. --- config/git/config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/git/config b/config/git/config index 32f11aa..1001b1a 100644 --- a/config/git/config +++ b/config/git/config @@ -9,9 +9,7 @@ [branch] autosetuprebase = remote - -[include] - path = ~/.config/git/user + sort = authordate [http] postBuffer = 524288000 @@ -19,3 +17,6 @@ [alias] s = status --short --branch amend = commit --amend --no-edit + +[init] + defaultBranch = main -- cgit 1.4.1