Using Git cache to modify, then reset the commit for the last time and then commit again, how will the cache be restored at this time?

  git, question

Using Git cache modification,
Then reset commit for the last time.
To commit again,
At this time, the use of Git stash pop reported an error.
error: cannot stat ‘app/views/news’: Permission denied
Is there a solution to this situation?

Let’s solve it ourselves.

Find reset’s sha through git reflog
clipboard.png

Then
git reset fc75442
Look at stash list at this time.

clipboard.png

Head is the same as the current head when stash is executed, and you can come back by executing git stash pop at this time.