Last Updated: February 25, 2016
· sfuku7

Remove commits on GitHub

At first fix commit history.


git reset --hard HEAD^

Force push the branch.

git push origin master --force

If you push the branch without '--force' argument, then the operation will be rejected.

NOTE: You must not change the history of shared gits.