add git aliases and enable pull.rebase
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aa1d297fea
commit
ae90629639
1 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,15 @@
|
||||||
nsp = "nix-shell -p";
|
nsp = "nix-shell -p";
|
||||||
|
|
||||||
cdnix = "cd /etc/nixos";
|
cdnix = "cd /etc/nixos";
|
||||||
|
|
||||||
|
ga = "git add";
|
||||||
|
gc = "git commit";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
gl = "git pull";
|
||||||
|
gla = "git pull --autostash";
|
||||||
|
gp = "git push";
|
||||||
|
gpf = "git push --force-with-lease";
|
||||||
|
tigs = "tig status";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -149,6 +158,7 @@
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
fetch.prune = true;
|
fetch.prune = true;
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
|
pull.rebase = true;
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
safe.directory = [ "/etc/nixos" ];
|
safe.directory = [ "/etc/nixos" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue