Skip to content

Instantly share code, notes, and snippets.

@alexandrino
Last active August 29, 2015 14:06
Show Gist options
  • Save alexandrino/aae40cb98d5bea0060f5 to your computer and use it in GitHub Desktop.
Save alexandrino/aae40cb98d5bea0060f5 to your computer and use it in GitHub Desktop.
Git Commands
# 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