Skip to content

Instantly share code, notes, and snippets.

@alihalabyah
Created April 8, 2015 12:07
Show Gist options
  • Save alihalabyah/b981ae29b0c948ff26d1 to your computer and use it in GitHub Desktop.
Save alihalabyah/b981ae29b0c948ff26d1 to your computer and use it in GitHub Desktop.
How to reset git remote changes
git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment