git set-working-tree

This commit is contained in:
Ivan Malison 2015-08-07 00:49:23 -07:00
parent da34c5d98f
commit e5cc53458b

View File

@ -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