Skip to content

Instantly share code, notes, and snippets.

@leandroh
Created April 22, 2016 19:39
Show Gist options
  • Save leandroh/eda86900dd6b7fc56946a56d8801451e to your computer and use it in GitHub Desktop.
Save leandroh/eda86900dd6b7fc56946a56d8801451e to your computer and use it in GitHub Desktop.
Reset the staging area and the working directory to overwrite all changes in the working directory, too. So make sure you really want to throw away your local developments before using it.
git reset --hard <commit_hash>
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment