$ git reset --hard <old-commit-id>
$ git push -f origin <branch>
Last active
August 29, 2015 14:19
-
-
Save rzani/ab06e44d0e5ffcd3754a to your computer and use it in GitHub Desktop.
How to remove a commit that is already pushed to Github
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment