Skip to content

chore: 🤖 never allow git add -A - #59

Merged
ChrisHirsch merged 1 commit into
mainfrom
chore/no-git-add-all
Nov 20, 2026
Merged

ChrisHirsch merged 1 commit into
mainfrom
chore/no-git-add-all

Conversation

@ChrisHirsch

Copy link
Copy Markdown
Owner

Stage with explicit paths (git add <path>...), never git add -A, git add ., or git add -u, including in staging commands suggested to the user. Carries over c9fb674, which was pushed to feat/claude_private_config after #55 merged.

Comment thread ai/claude/CLAUDE.md
EOF
```
- In a repo that allows committing, show the message and wait for approval before each commit.
- Stage with explicit paths (`git add <path>...`), never `git add -A`, `git add .`, or `git add -u`. This applies to staging commands suggested to the user too.
@ChrisHirsch
ChrisHirsch merged commit 3c5b00d into main Nov 20, 2026
15 checks passed
@ChrisHirsch
ChrisHirsch deleted the chore/no-git-add-all branch November 20, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants