diff --git a/home/profiles/git/default.nix b/home/profiles/git/default.nix index 872eb1e4..e1d59f06 100644 --- a/home/profiles/git/default.nix +++ b/home/profiles/git/default.nix @@ -56,6 +56,7 @@ pull.rebase = false; push.autoSetupRemote = true; init.defaultBranch = "main"; + "url \"git@github.com:\"" = { insteadOf = "https://github.com/"; }; }; aliases = { @@ -94,6 +95,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"; }; }; }