Git: config improvements

This commit is contained in:
Filippo Berto 2024-02-14 11:40:34 +01:00
parent 18fa71f40e
commit 6e943f56f3
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -58,7 +58,7 @@ let
"gma" = "git merge --abort"; "gma" = "git merge --abort";
"gp" = "git push"; "gp" = "git push";
"gpa" = "git push --all"; "gpa" = "git push --all";
"gpf!" = "git push --force"; "gpf!" = "git push --force-with-lease";
"gpoat" = "git push origin --all && git push origin --tags"; "gpoat" = "git push origin --all && git push origin --tags";
"gpu" = "git push upstream"; "gpu" = "git push upstream";
"gpv" = "git push -v"; "gpv" = "git push -v";
@ -102,9 +102,12 @@ in
# }; # };
extraConfig = { extraConfig = {
"add.interactive".useBuiltin = false; "add.interactive".useBuiltin = false;
commit.gpgSign = true;
core.editor = "hx";
credential.helper = "libsecret"; credential.helper = "libsecret";
commit.gpgSign = true;
core = {
editor = "hx";
fsmonitor = true;
};
delta = { delta = {
line-numbers = true; line-numbers = true;
navigate = true; navigate = true;
@ -124,6 +127,10 @@ in
}; };
pull.rebase = true; pull.rebase = true;
rebase.autoStash = true; rebase.autoStash = true;
rerere = {
enabled = true;
autoUpdate = true;
};
user.signingKey = "berto.f@protonmail.com"; user.signingKey = "berto.f@protonmail.com";
}; };
lfs.enable = true; lfs.enable = true;