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