- 博客(1)
- 收藏
- 关注
原创 解决误提交到远程Git仓库的target文件
(--cached 只删 Git 记录,不删本地文件) git rm -r --cached target(这里的target需要替换为你代码中需要删除的target路径)# 2. 提交删除操作 git commit -m "移除已提交的 target 目录"# 1. 先从本地暂存区/版本库删除 target文件。# 3. 推送到远程仓库 git push。无法直接从历史提交中移除,需额外操作。已经被提交到远程仓库,仅靠。
2025-07-30 09:40:32
254
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅