commit
Installation
SKILL.md
Commit
The working tree usually contains work that is not yours. Staging is an explicit act.
Stage only your own edits
git status --porcelainandgit diff --statfirst. Read the whole list.- Identify the files you edited this session. If unsure which those are, say so and ask rather than guessing.
- Stage them by explicit path:
git add path/a path/b. - Never
git add -A,git add .,git add -u, orgit commit -a. git diff --cachedbefore committing. If anything in it is not yours, unstage it.
Untracked files are not automatically yours and are not automatically disposable.
The same rule applies when moving work into a worktree: carry over the files you changed, not everything the tree shows as dirty.
Never stage implementation-notes-*.md. It is a local record, not part of the change.