Git Roll Back to Commits

Git Roll Back to Commits

Recently, my friends just wrongly commit his local changes to our master branch.

Here is the way to roll it back.
>git reset —hard <old-commit-number-from-browser>

>git push -f origin master





References:
http://stackoverflow.com/questions/4372435/how-can-i-rollback-a-github-repository-to-a-specific-commit



你可能感兴趣的:(commit)