Current I am working on a project and I have plenty of commits on my github. The commit sequence maybe like this:
A -> B -> C -> D -> E
After working on for a while, I realize that I have done big mistake on later progress and I wish to rollback to B. How can I revert back to B and delete C, D and E?