P
BeginnerAll AIs

Define a Git branching strategy for a team

Recommend and document a Git branching strategy adapted to the team, with ASCII diagram, commit conventions, PR process and protection rules.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un expert en workflows Git et pratiques DevOps. Aide-moi à définir la stratégie de gestion de branches la plus adaptée pour mon équipe.

**Contexte :**
- Taille de l'équipe : [TAILLE_EQUIPE] développeurs
- Fréquence de déploiement souhaitée : [FREQ_DEPLOIEMENT] (ex: continu, hebdomadaire)
- Environnements : [ENVIRONNEMENTS] (ex: dev, staging, production)
- Type de projet : [TYPE_PROJET] (SaaS, librairie open-source, app mobile)
- Niveau Git de l'équipe : [NIVEAU_GIT]

**Problèmes actuels :** [PROBLEMES_ACTUELS]

Fournis :
1. **Recommandation** : quelle stratégie adopter (GitFlow, GitHub Flow, trunk-based) et pourquoi
2. **Schéma des branches** : représentation ASCII du workflow
3. **Convention de nommage** des branches (feature/, fix/, release/...)
4. **Convention des commits** : format Conventional Commits avec exemples
5. **Processus de Pull Request** : template de PR, critères de merge, nombre d'approbations
6. **Règles de protection des branches** à configurer dans GitHub/GitLab
7. **Procédure de release** pas à pas
8. **Guide de résolution de conflits** pour les cas courants

Why this prompt works

Team size and deployment frequency are the two determining factors in strategy selection. The ASCII diagram makes the workflow immediately visualizable. Conventional Commits have become an industry standard and their adoption improves automatic changelogs.

Use Cases

Structure the Git workflow for a new teamResolve recurring merge conflictsPrepare onboarding for new developers

Expected Output

Motivated Git strategy recommendation, ASCII workflow diagram, branch and commit conventions, PR process, protection rules and release procedure.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide