方式一(推荐):
git revert commit-id
方式二(不推荐):不推荐原因:推送到线上后,其它开发人员需要重新clone
git reset --hard commit-id
git push origin HEAD --force
方式一(推荐):
git revert commit-id
方式二(不推荐):不推荐原因:推送到线上后,其它开发人员需要重新clone
git reset --hard commit-id
git push origin HEAD --force
转载于:https://my.oschina.net/weiweiblog/blog/1857549

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