Skip to content

Instantly share code, notes, and snippets.

@ashby
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save ashby/f4616f68eb3d170fd6b1 to your computer and use it in GitHub Desktop.

Select an option

Save ashby/f4616f68eb3d170fd6b1 to your computer and use it in GitHub Desktop.
GIT: Reset Hard and Roll Back
git reset --hard 258ba52
git reset --soft HEAD@{1}
git commit -m "revert to commit 258ba52"
git reset --hard
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment