mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
git configs
This commit is contained in:
parent
2a72464549
commit
08213ec050
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,6 @@
|
|||
s = "status";
|
||||
rc = "rebase --continue";
|
||||
ra = "rebase --abort";
|
||||
|
||||
# complex renames
|
||||
# TODO: use git-revise
|
||||
hardupdate = "!git fetch && git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
||||
|
|
@ -23,11 +22,13 @@
|
|||
enable = true;
|
||||
};
|
||||
extraConfig = {
|
||||
# TODO: See https://jvns.ca/blog/2024/02/16/popular-git-config-options
|
||||
core.autocrlf = false;
|
||||
core.editor = "${lib.getExe pkgs.neovim}";
|
||||
pull.ff = "only";
|
||||
push.autoSetupRemote = true;
|
||||
init.defaultBranch = "main";
|
||||
merge.conflictstyle = "zdiff3";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue