From dab56acd19a99ee8c583b9c58987663aeb856d85 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Mon, 7 Jul 2025 22:39:26 +1000 Subject: [PATCH] Fix git init defaults to branch name "master" (now: "main") --- homes/modules/git.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homes/modules/git.nix b/homes/modules/git.nix index 57b1e8f..3e0cfb0 100755 --- a/homes/modules/git.nix +++ b/homes/modules/git.nix @@ -9,6 +9,18 @@ color.ui = true; core.editor = "hx"; github.user = "emileclarkb"; + + init = { + defaultBranch = "main"; + }; + url = { + "https://github.com/" = { + insteadOf = [ + "gh:" + "github:" + ]; + }; + }; }; userName = "Emile Clark-Boman";