Last active
August 29, 2015 14:06
-
-
Save alexandrino/aae40cb98d5bea0060f5 to your computer and use it in GitHub Desktop.
Git Commands
This file contains hidden or 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
# REVERT COMMIT | |
git reset --hard f414f31 | |
git reset --soft HEAD@{1} | |
git commit -m "Reverting to the state of the project at f414f31` | |
# Reset and sync local respository with remote branch | |
git fetch origin | |
git reset --hard origin/master | |
git clean -f -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment