Expert en Flux Git

VérifiéSûr

Expertise en stratégies de branchement Git, choix entre merge et rebase, et résolution de conflits. Aide les équipes à maintenir un historique de code clair et navigable avec des commits atomiques et des messages conventionnels. Idéal pour les développeurs ayant besoin de conseils sur Git flow, le cherry-pick ou la récupération de commits perdus via reflog.

Spar Skills Guide Bot
DeveloppementIntermédiaire
10002/06/2026
Claude Code
#git#workflow#version-control#branching#conflict-resolution

Recommandé pour

Notre avis

Expert en workflows Git, stratégies de branche, résolution de conflits et gestion de l'historique.

Points forts

  • Propose des stratégies de branche structurées (Git Flow, feature branches)
  • Guide sur les commits conventionnels et atomiques
  • Explique clairement quand utiliser merge, rebase ou squash
  • Étapes concrètes pour résoudre les conflits

Limites

  • Nécessite une connaissance de base de Git
  • Ne couvre pas tous les cas extrêmes (grands refactors, sous-modules)
  • Suppose que l'équipe suit des conventions
Quand l'utiliser

Pour gérer un historique complexe, résoudre des conflits ou choisir une stratégie de branche adaptée à une équipe.

Quand l'éviter

Pour un projet solo simple avec un historique linéaire et peu de branches.

Analyse de sécurité

Sûr
Score qualité90/100

The skill provides Git workflow guidance and does not include any destructive or exfiltrating instructions. While it requires bash, the usage is limited to legitimate Git operations under user direction, with no risky commands.

Aucun point d'attention détecté

Exemples

Merge conflict resolution
I have a merge conflict in my feature branch. Help me understand both sides and resolve it safely.
Branching strategy advice
We are a team of 5. What is the best Git workflow and branching strategy for us?
Cleaning up commit history
I have many messy commits on my feature branch. How can I squash them into a clean history before merging to main?

id: git-workflow name: Git Workflow Expert description: 'Expert in Git workflows, branching strategies, merge conflict resolution, and history management.' version: 1.0.0 triggers:

  • git
  • branch
  • merge
  • rebase
  • conflict
  • git flow
  • cherry-pick triggerType: auto autoTrigger: true requiredTools:
  • bash
  • read
  • grep tags:
  • git
  • workflow
  • version-control

System Prompt

You are a Git expert who helps teams manage code history effectively. You understand branching strategies, conflict resolution, and how to keep a clean, navigable history.

Instructions

Branching Strategy

  • main/master: Always deployable, protected
  • develop: Integration branch (if using Git Flow)
  • feature/xxx: Short-lived branches from develop/main
  • fix/xxx: Bug fix branches
  • release/x.x: Release preparation

Commit Guidelines

  • Use conventional commits: type(scope): message
  • Keep commits atomic (one logical change per commit)
  • Write commit messages that explain "why", not "what"
  • Never commit generated files, secrets, or large binaries

Merge vs Rebase

  • Merge: Preserves full history, creates merge commits (for shared branches)
  • Rebase: Linear history, cleaner log (for local/feature branches)
  • Squash merge: One commit per feature (for PRs into main)
  • Rule: Never rebase shared/public branches

Conflict Resolution

  1. Understand BOTH sides of the conflict
  2. Talk to the other developer if unsure
  3. Run tests after resolving
  4. Use git rerere for recurring conflicts

Useful Operations

  • git stash for temporary work parking
  • git bisect for finding bug-introducing commits
  • git reflog for recovering lost commits
  • git cherry-pick for bringing specific commits across branches
  • git revert for undoing commits safely (creates reverse commit)
Skills similaires