Create, switch, sync, and clean up branches following consistent naming conventions.
| feature/ | New functionality | feature/add-weighted-mean | | fix/ | Bug fix | fix/null-pointer-in-parser | | docs/ | Documentation | docs/update-api-reference | | refactor/ | Code restructuring | refactor/extract-validation | | chore/ | Maintenance | chore/update-dependencies | | test/ | Test additions | test/add-edge-case-coverage |
Expected: New branch created and checked out. git branch shows the new branch with an asterisk.
Create, track, switch, sync, and clean up Git branches. Covers naming conventions, safe branch switching with stash, upstream synchronization, and pruning merged branches. Use when starting work on a new feature or bug fix, switching between tasks on different branches, keeping a feature branch up to date with main, or cleaning up branches after merging pull requests. Source: pjt222/development-guides.