idea git重置到某个版本然后提交

1.复制版本号(git-显示历史记录)

2.通过命令重置
git reset --soft e28b54d3a7f354ca15e2f3d0c74978c75fcf4421

3.再次提交
idea自带

或者命令行
git push -f -u origin master

4.参考链接
https://blog.csdn.net/weixin_43888177/article/details/131204853

posted @ 2023-09-05 09:53  小陈子博客  阅读(200)  评论(0编辑  收藏  举报