This is my current situation.
I have erroneously merged a pull request that contained rubbish.
So I reverted it using git revert -m 1 <sha of commit>
Now I wish to undo that revert but this time cherry pick only the correct changes.
Please how do I do that?
Thanks
Revert in git is a commit too. So you can simply revert a revert as usual commit:
git revert <revert_you_want_to_undo_sha1>
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