From 02f3751cdad57d52dcb88081847453bfde1935de Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 14 Jul 2023 21:38:25 -0700 Subject: [PATCH] git: set init.defaultBranch to main --- modules/git/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/git/default.nix b/modules/git/default.nix index 8caccf4..470af7a 100644 --- a/modules/git/default.nix +++ b/modules/git/default.nix @@ -7,5 +7,7 @@ userName = "ElnuDev"; userEmail = "elnu@elnu.com"; extraConfig.pull.rebase = true; + # Switch defaultBranch from master to main + extraConfig.init.defaultBranch = "main"; }; }