How to recover a dropped stash in Git?

前端 未结 19 2099
别跟我提以往
别跟我提以往 2020-11-22 01:42

I frequently use git stash and git stash pop to save and restore changes in my working tree. Yesterday I had some changes in my working tree that I

19条回答
  •  轮回少年
    2020-11-22 02:02

    git fsck --unreachable | grep commit should show the sha1, although the list it returns might be quite large. git show will show if it is the commit you want.

    git cherry-pick -m 1 will merge the commit onto the current branch.

提交回复
热议问题