参考:https://www.baeldung.com/git-recover-dropped-stash
- 找到要恢复的hash
git fsck --no-reflog | awk '/dangling commit/ {print $3}'
2.复制粘贴刚刚输出的第一行到下面 598…那串数字那里,即可恢复
git stash apply 59861637f7b599d87cb7a1ff003f1b0212e8908e
参考:https://www.baeldung.com/git-recover-dropped-stash
git fsck --no-reflog | awk '/dangling commit/ {print $3}'
git stash apply 59861637f7b599d87cb7a1ff003f1b0212e8908e