From 730eb8d8b17c0b60cbf3e1ab9f3adba43b2ab58a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 1 Apr 2024 21:20:25 +0800 Subject: add 'git rco' & 'git rcl' --- .config/git/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/git/config b/.config/git/config index 94e8f965..09c01894 100644 --- a/.config/git/config +++ b/.config/git/config @@ -4,11 +4,15 @@ s = status co = checkout sco = "!f() { git stash && git checkout \"$@\"; git stash pop; }; f" + rco = "!cd \"$(git rev-parse --show-toplevel)\" \ + && git reset && git checkout ." v = log --graph --full-history -30 --decorate --oneline --all ov = log --graph --full-history -30 --decorate --oneline --all \ --simplify-by-decoration d = diff cl = clean -xdff + rcl = "!cd \"$(git rev-parse --show-toplevel)\" \ + && git reset && git checkout . && git clean -xdff" rlh = rl HEAD [annex] -- cgit v1.2.3