Remove last commit from remote git repository [duplicate] How can I remove the last commit from a remote GIT repository such as I don't see it any more in the log? If for example git log gives me the following commit history A->B->C->D[HEAD, ORIGIN] how can I go to A->B->C[HEAD,ORIGIN] ------- Be careful that this will create an "alternate reality" for people who have already fetch/pulled/cloned from the remote repository. But in fact, it's quite simple: git reset HEAD^ # remove commit locally git push origin +HEAD # force-push the new HEAD commit If you want to still have it in your local repository and only remove it from the remote, then you can use: git push origin +HEAD^: