转载:https://blog.csdn.net/yxlshk/article/details/79944535
1.需求场景:
在利用github实现多人协作开发项目的过程中,有时会出现错误提交的情况,此时我们希望能撤销提交操作,让当前版本回到提交前的样子或者某一个版本。
2.解决方法
git reset --hard 目标版本号