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
猜你喜欢
转载自sillycat.iteye.com/blog/2123892
今日推荐
周排行