Skip to content

Instantly share code, notes, and snippets.

@mikemichaelis
Created October 3, 2016 15:22
Show Gist options
  • Save mikemichaelis/56ca294042949956131d3541de5d4225 to your computer and use it in GitHub Desktop.
Save mikemichaelis/56ca294042949956131d3541de5d4225 to your computer and use it in GitHub Desktop.
If you have the master branch checked out locally, you can also do it in two simpler steps: First reset the branch to the parent of the current commit, then force-push it to the remote.
$ git reset HEAD^ --hard
$ git push mathnet -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment