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 发布
本文指导您如何使用Git命令将本地更改回滚至特定提交,避免团队协作中的错误提交问题。

2291

被折叠的 条评论
为什么被折叠?



