NixOSConfig/lib/modules/git.nix
2024-06-12 03:10:07 +02:00

49 lines
1.2 KiB
Nix

{ ... }:
let
defaultBranch = "main";
in {
config = {
programs.git.config = {
init = {
inherit defaultBranch;
};
gitflow = {
branch = {
master = defaultBranch;
develop = "dev";
};
};
alias = {
"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";
};
};
};
}