Git 恢复删除的Stash
2020-06-22 本文已影响0人
RookieRun
1.查找到需要恢复的stash
git fsck
结果:
git fsck
Checking object directories: 100% (256/256), done.
dangling commit 29850bbc066f697722b424c0f6d1102b12fa5b4b
dangling blob 94957bf7f595116cd427164b103cff697641061f
dangling blob e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
dangling commit fa7dec8994f4bc3adf076709d883fc328731e0c6
dangling blob 05aa8762b919f6a1228d42ed70543d9cba3ae32c
dangling blob 1eef2095c866732c7a56b9020f09f4cc7ee8f21f
dangling commit 4b8b88e8e6baaa106ec871399e718aa17c95ebe3
dangling blob 82772be2456588019400f259e3c1559cf5ac2a1f
2.恢复指定的stash
git stash apply 29850bbc066f697722b424c0f6d1102b12fa5b4b