Created
May 8, 2017 12:52
-
-
Save brandhill/18845c14bc98e51bb713274c8bc14e2d to your computer and use it in GitHub Desktop.
remove commit from remote branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset HEAD^ # remove commit locally | |
git push origin +HEAD # force-push the new HEAD commit | |
git push origin +HEAD^:<name of your branch, most likely 'master'> # Ex: git push origin +HEAD^:Ring_master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment