Nommage des branches Git

VérifiéSûr

Crée des branches Git avec un nommage cohérent suivant la convention type/description. Guide complet avec types et exemples pratiques.

Spar Skills Guide Bot
DeveloppementDébutant
4002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#git#branching#naming-convention#workflow

Recommandé pour

Notre avis

Crée des branches git en utilisant une convention de nommage structurée (type/courte-description) pour maintenir une cohérence dans le contrôle de version.

Points forts

  • Impose une norme claire de nommage des branches.
  • Catégorise le travail par type (feat, fix, etc.).
  • Encourage des slugs descriptifs et concis.
  • S'intègre parfaitement dans les workflows git.

Limites

  • Ne couvre que la création de branches, pas le merge ni d'autres opérations git.
  • Nécessite le respect des types définis pour être efficace.
  • Peut nécessiter une personnalisation pour des équipes avec des conventions différentes.
Quand l'utiliser

Utilisez cette compétence lorsque vous démarrez une nouvelle fonctionnalité, une correction de bug ou toute tâche nécessitant une nouvelle branche git.

Quand l'éviter

Évitez-la si vous travaillez sur des branches déjà créées ou si votre équipe utilise une convention de nommage différente.

Analyse de sécurité

Sûr
Score qualité85/100

The skill only advises running 'git checkout -b' with a naming convention, which is a standard, non-destructive version control operation. No harmful commands, external network calls, data exfiltration, or safety bypasses are present.

Aucun point d'attention détecté

Exemples

Create feature branch
Create a new git branch for a user profile page feature. Use the proper naming convention.
Create fix branch
I need to fix a bug with login validation. Create a branch for this fix using the branching skill.
Create chore branch
Set up a branch for updating dependencies (chore). Use the type/short-description format.

name: branch description: Creates git branches with proper naming. Use when creating branches, starting new work, or switching to feature branches.

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 only
  • style: Code style/formatting (no logic changes)
  • refactor: Code restructuring without behavior change
  • test: Adding or updating tests
  • chore: CI/CD, tooling, dependency bumps, configs (no production code)

Examples

feat/infinite-scroll
fix/album-path-validation
refactor/state-management
chore/pre-commit-hooks
docs/update-readme
test/e2e-login-flow

Instructions

  1. Determine the type based on what the work will accomplish
  2. Choose a short, descriptive slug (2-4 words, hyphenated)
  3. Create the branch: git checkout -b type/short-description
Skills similaires