Total Pageviews

2019/01/10

[Git] How to revert multiple git commits?

Problem
Here is my commit history:

If I would like to revert to B, how to do it?


How-To
Git commands:
git reset --hard B
git reset --mixed E
git commit



Reference
[1] https://stackoverflow.com/questions/1463340/how-to-revert-multiple-git-commits/1463390#1463390

No comments: