I am using GitHub as my remote repository.
I have already pushed 5 commits to the server and want to revert back to the state before the those commits.
If the co
You can do git revert to all the commits that have been made after your required state. (In the reverse order to avoid any conflicts.)
git revert
This is a clean way if there are other people sharing the repo, but a little effortsome. (You may automate though...?)