Timeline for How can I revert multiple Git commits?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22, 2022 at 13:36 | comment | added | GACy20 |
this won't work most of the times: error: commit XXX is a merge but no -m option was given. fatal: revert failed. I'm starting to think the best general way to do this is git checkout <first commit> then git archive and then manually create a commit unzipping the archived version...
|
|
Feb 18, 2022 at 11:34 | comment | added | P D | Just to add: `<first-commit-sha>^..<last-commit-sha>`` is inclusive range. Besides, excellent answer. It worked for me in Git Bash. | |
Oct 12, 2020 at 14:13 | history | edited | rogerdpack | CC BY-SA 4.0 |
I had trouble looking up what -n meant so...
|
Aug 4, 2011 at 11:29 | history | answered | Ruslan Kabalin | CC BY-SA 3.0 |