Skip to content

parallel-teammate-git-index-race

Parallel Teammate — Race-Free Git Commit & Branch Primitive

Section titled “Parallel Teammate — Race-Free Git Commit & Branch Primitive”

Shared tree/index/HEAD. Six BANNED forms: two-step git add+git commit; checkout -b/switch by a non-lead; two teammates on one file; --amend; committing work you did not write; git stash without a pathspec (only git stash push -- <paths>; t1k-lane-worker: never). Pathspec commit git commit -m "<msg>" -- p1 p2; new files git add <explicit>; never git add ./-A/commit -a/--amend. A pathspec guards FILES, not CONTENT — read git diff --cached -- <paths> first, never commit a diff your subject line does not cover; it commits WORKING-TREE content, so an index-only change at a named path is silently dropped — stage it alone and commit with no pathspec. Verify with git show --name-only --format="" HEAD. A commit wider than its author declared is normal here: authority is the commit message, check neighbours before calling a regression. Full text: docs/parallel-teammate-git-index-race.md.

skills/t1k-team/references/parallel-teammate-git-index-race.md + docs/parallel-teammate-git-index-race.md.