From dabd51ea1a48ab04daa4ebf5f1616004f84e98b8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 15 Jul 2024 20:24:59 +0200 Subject: [PATCH] Specify default `git` settings --- profiles/Generic/config.nix | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/profiles/Generic/config.nix b/profiles/Generic/config.nix index 537e6bef..8f2bf4fb 100644 --- a/profiles/Generic/config.nix +++ b/profiles/Generic/config.nix @@ -47,6 +47,48 @@ LC_MESSAGE = defaultLocale; }; }; + + git = + let + defaultBranch = "main"; + in { + inherit defaultBranch; + + flow = { + mainBranch = defaultBranch; + devBranch = "dev"; + }; + + aliases = { + ahfange = "init"; + tuedezue = "add"; + beschuldig = "blame"; + zieh = "pull"; + druck = "push"; + machnah = "clone"; + hol = "fetch"; + zwiigab = "branch"; + buechiih = "commit"; + eich = "rebase"; + erd = "rebase"; + gahufwiifelde = "rebase"; + vergliich = "diff"; + tuezemme = "merge"; + versorg = "stash"; + markier = "tag"; + pflueckoepfel = "cherry-pick"; + pflueckhimbeeri = "cherry-pick"; + buechuus = "checkout"; + quaetsch = "merge --squash"; + pfudle = "push --force"; + beschuldigung = "blame"; + zwiigli = "branch"; + tagebuech = "log"; + versteck = "stash"; + zuestand = "status"; + markierig = "tag"; + }; + }; }; }; }