73o5mw
Last Updated: February 25, 2016
·
2.327K
· sfuku7

Remove commits on GitHub

At first fix commit history.

Example:

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.