suppose we would like to cancel N commits
[code lang="bash"] git reset --hard HEAD~N git push origin -f [/code] ,where N is the number of revert. Note that this commands may be wrong. I'll check how git reset works and then put detailed information on another post.