DEV Community

Nguyen
Nguyen

Posted on

Answer: Aborting a stash pop in Git

Simple one liner

I have always used

git reset --merge

I can't remember it ever failing.


Note: git reset --merge will discard any staged changes

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay