Created
June 12, 2016 01:21
-
-
Save motleytech/d0cd253ce28809bf062e3a407b199949 to your computer and use it in GitHub Desktop.
delete last git commit locally and remote
This file contains hidden or 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 last local commit | |
git push origin +HEAD # update remote | |
git push origin +HEAD^ # only delete last commit on remote... keep local as it is. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment