diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2024-04-01 21:20:25 +0800 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2024-04-01 21:22:51 +0800 |
commit | 730eb8d8b17c0b60cbf3e1ab9f3adba43b2ab58a (patch) | |
tree | 3291a704918addeda89c912d84a1308f42ae2c79 | |
parent | b3075aaef1ad7a2fea02bcc7c02f2e7b52c14437 (diff) | |
download | dotfiles-730eb8d8b17c0b60cbf3e1ab9f3adba43b2ab58a.tar.gz |
add 'git rco' & 'git rcl'
-rw-r--r-- | .config/git/config | 4 |
1 files changed, 4 insertions, 0 deletions
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] |