欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 700|回复: 0
收起左侧

[其他] GIT清除历史提交中的错误提交

[复制链接]
知行 发表于 2023-1-5 22:14 | 显示全部楼层 |阅读模式

如果是目录,要加 git rm -r

git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch <file or directory path>' --prune-empty --tag-name-filter cat -- --all
git push origin --force --all
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-4 11:49 , Processed in 0.037349 second(s), 9 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表