From e5cc53458b279d7ae5f1517f60133f3ad5fab5cd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 7 Aug 2015 00:49:23 -0700 Subject: [PATCH] git set-working-tree --- dotfiles/gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index ffd6742d..247c3601 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -37,6 +37,7 @@ rh = reset --hard root = rev-parse --show-toplevel s = status -s + set-working-tree = "!s() { local head=\"$(git rev-parse HEAD)\"; git reset --hard $1 && git reset --soft $head; }; s" sha = rev-parse HEAD shas = log HEAD --pretty=format:%H suir = submodule update --init --recursive