Git Branch Skill
When to Apply
- User asks to create/switch/delete branches.
- Work needs branch hygiene before implementation.
Workflow
- Determine base branch (
main,develop, or project default). - Create branch with consistent naming:
feature/<topic>fix/<topic>chore/<topic>
- Verify upstream tracking after push.
- Clean up merged branches when requested.
Safety
- Do not delete unmerged branches without explicit confirmation.
- Avoid force operations unless necessary and approved.