Gitset mistakenly deleted local uncommitted files

  git, question

I want to withdrawgit addOperation, sogit reset --hard HEAD

The results returned to the position of the last submission. What should I do to retrieve the uncommitted modification documents …

Besides, I will use it next time.git rm --cachedShame:

You can try.git reflogCommand:

If you accidentally use git commit-amend as a Gitcommit to overwrite the current commit, or you accidentally reset –hard the current Commit. Can be recovered through git reflog. …