zhuyuan-ice-gl-zy001/FB-反馈/FB-20260806-001-EXFAT-APPLEDOUBLE-REBASE.md
2026-08-20 00:01:53 +08:00

1 KiB
Executable file
Raw Permalink Blame History

FB-20260806-001 · ExFAT AppleDouble 与 git rebase 踩坑

卷: FB-反馈 · 问题修复记录 · 2026-08-06 · 铸渊 ICE-GL-ZY001

现象

在 /Volumes/JZAO(ExFAT)上的 git 克隆中:

  1. 每次文件操作都生成 AppleDouble 元数据 ._* 文件,被 git add 误收进提交
  2. .git/objects/pack/ 内出现 ._pack-*.idx,git 持续报 error: non-monotonic index
  3. git pull --rebase 反复卡死在 "You are currently editing a commit",todo 状态自相矛盾,疑似 rebase-merge 状态文件被 AppleDouble 干扰

修复

  1. git rm --cached 移除已入库的 ._*,物理文件移入废纸篓(禁 rm)
  2. .gitignore 追加 ._* 与 .DS_Store(已随 b9ee788 上线远端)
  3. 放弃 rebase:git rebase --abort → git checkout -B main origin/main → git checkout <本地提交> -- <路径> 叠加 → 重新提交推送

规则沉淀

⊢ ExFAT 工作克隆上禁用 rebase,用 reset + 叠加代替 ⊢ 每次 commit 前检查 git status 有无 ._* 混入 ⊢ .git 内部出现 ._* 立即清理