DEV Community

Zarar Siddiqi
Zarar Siddiqi

Posted on • Edited on

Easiest way to revert to previous commit without committing

From this answer.

git revert --no-commit 0766c053..HEAD
git commit

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