0
点赞
收藏
分享

微信扫一扫

github删除一个commit(回滚到某个commit)的方法

ZGtheGreat 2021-09-30 阅读 152

这次主要是在使用的时候不小心提交了代码,需要删除这次提交,记录一下解决的方法.
1.git reflog找到版本号



2.git reset --hard commit_id



3.git push origin HEAD --force

举报

相关推荐

0 条评论