Returning to the topic of "first bad commit" / oldest / highest number -- highest number actually doesn't clarify it for me.
If we use the git log that you referenced as a basis for the example, and we wanted to revert the last five commits, would it be:
git revert --no-edit 111b003..852291a
following the pattern:
git revert --no-edit <oldest-commit-hash>..<newest-commit-hash>
1 852291a blah blah blah 2 f575c87 blah blah 3 83d855d blah blah 4 9fa11df blah blah blah blah 5 111b003 blah blah 6 2b3a530 blah blah blah 7 a4c5f54 blah blah blah blah blah blah 8 b2a62fa blah blah blah blah blah blah blah blah blah 9 5fb67b9 blah blah blah 10 4d1a5fc blah blah blah 11 ed40aec Initial commit
Thanks!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Returning to the topic of "first bad commit" / oldest / highest number -- highest number actually doesn't clarify it for me.
If we use the git log that you referenced as a basis for the example, and we wanted to revert the last five commits, would it be:
git revert --no-edit 111b003..852291a
following the pattern:
git revert --no-edit <oldest-commit-hash>..<newest-commit-hash>
Thanks!