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
Git Roll Back to Commits
最新推荐文章于 2022-11-22 09:59:22 发布