home/git: new aliases: drop, undo
This commit is contained in:
parent
1dfafa3fb0
commit
600db5c4fc
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
aliases = rec {
|
aliases = rec {
|
||||||
ac = "!git add . && git commit";
|
ac = "!git add . && git commit";
|
||||||
dump = "!cd ~/Projects/dump && git clone --depth=1";
|
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";
|
grab = "clone --depth=1";
|
||||||
graph = "log --all --decorate --graph --oneline";
|
graph = "log --all --decorate --graph --oneline";
|
||||||
gud = ac;
|
gud = ac;
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
nuke = "!git reset --hard HEAD && git clean -d -f";
|
nuke = "!git reset --hard HEAD && git clean -d -f";
|
||||||
patchwork = "!git init && git add . && git commit -m pre";
|
patchwork = "!git init && git add . && git commit -m pre";
|
||||||
strip = "!rm -rf .git/ && echo Stripped repository information";
|
strip = "!rm -rf .git/ && echo Stripped repository information";
|
||||||
|
undo = "${drop} HEAD~";
|
||||||
unfuck = "reset --hard";
|
unfuck = "reset --hard";
|
||||||
what = "diff HEAD";
|
what = "diff HEAD";
|
||||||
where = "diff --name-status HEAD";
|
where = "diff --name-status HEAD";
|
||||||
|
|
Loading…
Reference in a new issue