Commit 6186ee4
committed
chore(claude): document "don't revert files you didn't touch"
When `git status` shows files you didn't modify (other session's
edits, hook side-effects, upstream pulls), leave them alone. Don't
`git checkout -- <unrelated-path>` to clean up the diff before
committing, and don't sweep them into `git add`. Stage only the
files you explicitly edited.
Codifies a pattern that's easy to violate when chasing "clean diffs"
on commit but actively destroys work belonging to parallel sessions.
Sits alongside the existing parallel-sessions / worktree-required
rules.
Synced from socket-lib's canonical PARALLEL CLAUDE SESSIONS section.1 parent a7bdc11 commit 6186ee4
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
0 commit comments