home/git: new aliases: drop, undo

This commit is contained in:
Max Headroom 2022-04-22 20:25:51 +02:00
parent 1dfafa3fb0
commit 600db5c4fc

View file

@ -10,6 +10,7 @@
aliases = rec {
ac = "!git add . && git commit";
dump = "!cd ~/Projects/dump && git clone --depth=1";
drop = "!EDITOR='${pkgs.gnused}/bin/sed -i s/^pick/drop/g' git rebase -i";
grab = "clone --depth=1";
graph = "log --all --decorate --graph --oneline";
gud = ac;
@ -18,6 +19,7 @@
nuke = "!git reset --hard HEAD && git clean -d -f";
patchwork = "!git init && git add . && git commit -m pre";
strip = "!rm -rf .git/ && echo Stripped repository information";
undo = "${drop} HEAD~";
unfuck = "reset --hard";
what = "diff HEAD";
where = "diff --name-status HEAD";