1,首先更新本地代码到最新版本,到当前项目工程里面
git pull
2,使用--hard高风险
git reset --hard 5e9c47c
最后强制推送到远程
git push --force
这样就彻底删除提交记录。
分享来自:https://blog.csdn.net/weixin_47872288/article/details/144726286