Commit d0e2ad4
docs(agents): harden the worktree recipe with --no-track, and name .git/config in the shared-namespace inventory
The prescribed 'git worktree add -b <branch> origin/main' writes the new
branch's upstream config (branch.NAME.remote / branch.NAME.merge) into the
one .git/config every linked worktree shares, and that write can fail AFTER
the branch is created -- leaving a branch with no worktree, a state the
recipe never mentions. --no-track skips the config write entirely and still
bases the worktree on origin/main; nothing in the agent flow needs the
upstream, because 'git push -u origin <branch>' sets one a command later.
Line-neutral in both files (AGENTS.md 1162/1162, CLAUDE.md 86/86).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EXxTW8mvPBhoHxmyPZ63de1 parent a68c612 commit d0e2ad4
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments