docs: add git safety rules for quoting paths and non-interactive rebase
- 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 <crush@charm.land>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user