
branch
Creates git branches with proper naming. Use when creating branches, starting new work, or switching
by deanmoses|Open Source
Branch Naming
Use type/short-description format.
Types
feat: User-facing features or behavior changes (must change production code)fix: Bug fixes (must change production code)docs: Documentation onlystyle: Code style/formatting (no logic changes)refactor: Code restructuring without behavior changetest: Adding or updating testschore: CI/CD, tooling, dependency bumps, configs (no production code)
Examples
feat/cache-policy
fix/robots-txt-503
chore/pre-commit-hooks
docs/update-readme
refactor/simplify-cache-behaviors
Instructions
- Determine the type based on what the work will accomplish
- Choose a short, descriptive slug (2-4 words, hyphenated)
- Create the branch:
git checkout -b type/short-description