I reverted back a few commits by running 'git revert commit id' such as:
git revert b2cb7c248d416409f8eb42b561cbff91b0601712
Then i was prompted to commit the revert (just as you would when running 'git commit'). My default terminal program is Vim so i ran:
:wq
Finally i pushed the change to the repository with:
git push