Real quick here’s how:
- Move the HEAD of your branch to a commit before the one you want removed
git reset - Force push the current HEAD to remove all the future history, thus undoing the commit
git push origin +master
Checkout a big discussion here:
http://stackoverflow.com/questions/448919/how-can-i-remove-a-commit-on-github