Create Branch

Create a new git branch from latest main using the naming convention.

majiayu000 4ad36e7 2 files · 1.7 KB Updated 567 repo stars

File contents

  1. Pull latest main:

    git fetch origin main
    git checkout main
    git pull origin main
    
  2. Create the branch using the naming pattern <type>/<short-description>:

    git checkout -b <type>/<short-description>
    
    • Use kebab-case for the description
    • Types match conventional commit types: feat, fix, docs, style, refactor, perf, test, chore, revert
    • Examples:
      • feat/add-vehicle-validation
      • fix/geolocation-precision-edge-case
      • chore/update-dependencies
      • refactor/extract-shared-helpers
  3. Verify you are on the new branch with git branch --show-current.

majiayu000/claude-skill-registry-data/tree/main/development/create-branch-carrot-foundation-methodology-rules commit 4ad36e7b23

Frequently asked questions

npx skillmds add majiayu000/create-branch-3