summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/git/config4
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]