日期:2026-07-13
项目:Aligner
范围:按用户确认的方案清理 03-O Git dirty,提交并推送到 boborobots/main。
用户认可对 dirty 工作树的分类和处理建议,要求按该方案执行:删除 AppleDouble 噪声,忽略后续 ._*,恢复权限位噪声,保留有价值文档变更并提交。
/Users/ar/Projects/Aligner/03-O 下 199 个 AppleDouble ._* 文件。03-O/.gitignore 中新增 ._*。C3.tools/README.md、K1.业务知识/README.md、K2.项目管理/README.md、K3.运营与发布资料/README.md。14a1efc86d0295be3a0d3fe1ebe7b8080266da2d:docs: clean Aligner migration metadata。boborobots/main,远端 refs/heads/main 已验证为同一 hash。02-P/plan-progress.markdown 和 02-P/当前阶段/pending-user-decisions.md,移除 Git dirty 阻塞口径。03-O Git 工作树状态、远端 main、迁移文档路径口径、目录 README。/Users/ar/Projects/Aligner/03-O14a1efc86d0295be3a0d3fe1ebe7b8080266da2dhttps://git.boborobots.com/r/crazy-macs/aligner.git02-P/plan-progress.markdown02-P/当前阶段/pending-user-decisions.md03-O 为 dirty。._*。Aligner2 到 Aligner 的路径 / 命名迁移修正。.gitignore 忽略 ._*。03-O Git 工作树 clean。boborobots/main 指向 14a1efc86d0295be3a0d3fe1ebe7b8080266da2d。git diff --check 通过。git diff --cached --check 通过。git status --short --branch 显示 ## main...boborobots/main。git ls-remote --heads ... main 返回 14a1efc86d0295be3a0d3fe1ebe7b8080266da2d refs/heads/main。用途:再次遇到 macOS AppleDouble ._* 和误 chmod 导致的 Git dirty 时,按精确范围清理,不使用 git clean。
前置条件:
/Users/ar/Projects/Aligner。/Users/ar/Projects/Aligner/03-O。git status --short --branch 和 git diff --stat 确认没有未知的重要源码内容混在其中。设置和验证:
cd /Users/ar/Projects/Aligner/03-O
git status --short --branch
git ls-files --others --exclude-standard | awk 'BEGIN{apple=0; other=0} /(^|\/)\._/ {apple++; next} {other++; print} END{print "--counts--"; print "appledouble=" apple; print "other_untracked=" other}'
find /Users/ar/Projects/Aligner/03-O -name '._*' -type f -delete
git diff --name-only -z | while IFS= read -r -d '' p; do mode=$(git ls-files -s -- "$p" | awk '{print $1}'); case "$mode" in 100644) chmod 644 "$p" ;; 100755) chmod 755 "$p" ;; esac; done
git diff --check
git status --short --branch
验证标准:
git diff --summary 不再出现无意义的 100644 => 100755 权限位噪声。git diff --check 返回 0。清理 / 恢复:
git clean。._*,通常应从源文件或备份恢复;这些文件本身不应作为项目源码事实源。搜索关键词:AppleDouble、._*、chmod、mode-change、100644 100755、Git dirty 清障。
03-O/.gitignore03-O/C1.source/AGENTS.md03-O/C1.source/CODEGRAPH.md03-O/C3.tools/README.md03-O/K1.业务知识/README.md03-O/K1.业务知识/设计成果地图.md03-O/K2.项目管理/QA成果地图.md03-O/K2.项目管理/README.md03-O/K2.项目管理/新窗口接手指南.md03-O/K2.项目管理/研发交付验收流程.md03-O/K3.运营与发布资料/README.md02-P/plan-progress.markdown02-P/当前阶段/pending-user-decisions.md.codex-sessionhistory/26.0713-Aligner.Git清障-提交推送.md.codex-sessionhistory/COMMANDS.mdR025-COMPAT-001 仍需真实 macOS 14+ Apple Silicon 环境。