Skip to content

Instantly share code, notes, and snippets.

@motleytech
Created June 12, 2016 01:21
Show Gist options
  • Save motleytech/d0cd253ce28809bf062e3a407b199949 to your computer and use it in GitHub Desktop.
Save motleytech/d0cd253ce28809bf062e3a407b199949 to your computer and use it in GitHub Desktop.
delete last git commit locally and remote
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