Created
July 2, 2014 11:42
-
-
Save yurytello/dacc1a65f2135f85a007 to your computer and use it in GitHub Desktop.
reset commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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