How do you remove a specific revision in the git history?

Suppose your git history looks like this:

1
2
3
4
5

1–5 are separate revisions. You need to remove 3 while still keeping 1, 2, 4 and 5. How can this be done?

Is there an efficient method when there are hundreds of revisions after the one to be deleted?

9 Answers
9

Leave a Comment