I have a git repo and am having trouble reverting a merge. The current hash is 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3. and it has two parents:
df1acf5f54426d30f12c6b4558c3dd922297aae3
e19b912404ffd3c153ccac3072dbf22396896d2a
doing the following will revert to df1acf5f54426d30f12c6b4558c3dd922297aae3
git revert -m 1 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3
how do I revert to e19b912404ffd3c153ccac3072dbf22396896d2a?
git revert -m 2 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3
Parents are numbered starting with 1; you want the second one.
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