From de5793e0df054fe795b8c014d8da9c15ac6128c3 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Tue, 17 Feb 2026 11:46:07 -0500 Subject: [PATCH] docs: add git safety rules for quoting paths and non-interactive rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Quote paths with brackets/parentheses to prevent shell expansion - Use GIT_EDITOR=: GIT_SEQUENCE_EDITOR=: for non-interactive rebase 💘 Generated with Crush Assisted-by: GLM-5 via Crush --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 985e189..b8a89d5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -324,6 +324,8 @@ git push origin main - Run full test suite before committing - **Double-check `git status` before ANY commit** - verify staged files match intent - **Delete unused/obsolete files** when refactors or feature removals make them irrelevant +- **Quote git paths with brackets/parentheses** (e.g., `git add "src/app/[candidate]/**"`) to prevent shell glob/subshell expansion +- **Use non-interactive git rebase** - set `GIT_EDITOR=: GIT_SEQUENCE_EDITOR=:` or pass `--no-edit` to avoid opening editors - Update documentation when changing behavior - Follow existing code style - Use conventional commit messages