git set-working-tree
This commit is contained in:
parent
da34c5d98f
commit
e5cc53458b
@ -37,6 +37,7 @@
|
|||||||
rh = reset --hard
|
rh = reset --hard
|
||||||
root = rev-parse --show-toplevel
|
root = rev-parse --show-toplevel
|
||||||
s = status -s
|
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
|
sha = rev-parse HEAD
|
||||||
shas = log HEAD --pretty=format:%H
|
shas = log HEAD --pretty=format:%H
|
||||||
suir = submodule update --init --recursive
|
suir = submodule update --init --recursive
|
||||||
|
Loading…
Reference in New Issue
Block a user