git: add some neat config options

This commit is contained in:
Christoph Hollizeck 2026-02-12 13:13:00 +01:00
parent 19551d4e5b
commit 9a1f7cfe75
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 96 additions and 11 deletions

View file

@ -49,22 +49,24 @@ topLevel: {
};
core = {
fsmonitor = true;
editor = "hx";
};
init = {
defaultBranch = "main";
};
pull = {
rebase = true;
};
push = {
autoSetupRemote = true;
commit.verbose = true;
init.defaultBranch = "main";
pull.rebase = true;
fetch = {
prune = true;
pruneTags = true;
};
push.autoSetupRemote = true;
rebase = {
autoStash = true;
autoSquash = true;
};
safe = {
directory = "/home/${username}/projects/config";
};
merge.conflictstyle = "zdiff3";
safe.directory = "/home/${username}/projects/config";
submodules.recurse = true;
help.autocorrect = "prompt";
maintenance = {
repo = [
"/home/${username}/projects/NixOS/nixpkgs"