Skip to content

Instantly share code, notes, and snippets.

@vertigra
Created June 8, 2017 02:09
Show Gist options
  • Save vertigra/acd770b703d2e27d71d857e985e01d79 to your computer and use it in GitHub Desktop.
Save vertigra/acd770b703d2e27d71d857e985e01d79 to your computer and use it in GitHub Desktop.
Git hard reset & forse push

git reset --hard HEAD~3 # reset current branch to 3 commits ago
git push origin master --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment