I'm looking at the last 10 or so pushes, and I would like to back out 4 of them (unconsecutive).
How can I do this?
In SVN, it would be a matter of reverting the changes and pushing the "undone" changes back in. Not sure how to do it in Git.
You use git revert <commit>
to revert the offending commits without rewriting history. This creates a new commit that undoes these commits.
Instead of <commit>
you use the SHA of each commit you want to revert.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With