How to abort stash apply

How to reverse apply a stash? I mistakenly executed the ‘git stash abort’ and ‘git stash pop’ commands, which resulted in a conflict in my file. I then searched online for a way to revert the changes made by ‘git stash pop’.

git stash
abort
git reset HEAD --hard
git checkout my_correct_branch
git stash pop

git stash pop
git stash list
git stash pop #OfStash

Frequently Asked Questions