diff --git a/home/profiles/git/default.nix b/home/profiles/git/default.nix index 872eb1e4..3d02cd7c 100644 --- a/home/profiles/git/default.nix +++ b/home/profiles/git/default.nix @@ -12,7 +12,10 @@ userName = "Anish Lakhwara"; userEmail = "anish+git@lakhwara.com"; delta.enable = true; - # TODO enable signing + signing = { + signByDefault = true; + key = "7FC5DF072EF7B716"; + }; ignores = [ "*~" @@ -56,6 +59,7 @@ pull.rebase = false; push.autoSetupRemote = true; init.defaultBranch = "main"; + "url \"git@github.com:\"" = { insteadOf = "https://github.com/"; }; }; aliases = { @@ -94,6 +98,8 @@ # delete merged branches bdm = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d"; + undo = "!git reset HEAD~1 --mixed"; + blm = "blame -w -C -C -C"; }; }; }