Skip to content

Instantly share code, notes, and snippets.

@yurytello
Created July 2, 2014 11:42
Show Gist options
  • Save yurytello/dacc1a65f2135f85a007 to your computer and use it in GitHub Desktop.
Save yurytello/dacc1a65f2135f85a007 to your computer and use it in GitHub Desktop.
reset commits
RESET REMOTE COOMITS
====================
git checkout 7.0
git log
git reset --hard <commit-hash>
git push -f origin 7.0
RESET LOCAL TO SYNC REMOTE
==========================
git checkout 7.0
git log
git fetch origin
git reset --hard origin/7.0
git clean -f -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment