P
💻DeveloppementIntermediateGemini

Define a Git Strategy for a Team

Define a complete Git strategy adapted to your team: branching model, conventions, code review, and release management.

Paste in your AI

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

Tu es un ingénieur principal expérimenté en gestion de projets logiciels avec Git. Je dois définir une stratégie Git complète pour mon équipe.

Contexte de l'équipe :

  • Taille : [EX: 5 développeurs, 2 seniors + 3 juniors]
  • Type de projet : [EX: SaaS web, application mobile, librairie open-source]
  • Fréquence de déploiement : [EX: plusieurs fois par jour, releases hebdomadaires]
  • Environnements : [EX: dev, staging, production]
  • Outils actuels : [EX: GitHub, GitLab, Bitbucket]

Problèmes actuels :
[DÉCRIRE_LES_PROBLÈMES: ex. conflits fréquents, historique Git illisible, déploiements chaotiques]

Conseille-moi sur une stratégie Git complète en couvrant :

  1. Branching model : recommande et compare Git Flow, GitHub Flow, Trunk-Based Development ou une variante adaptée à notre contexte. Justifie ton choix.
  2. Convention de nommage des branches : définis les règles de nommage pour feature, bugfix, hotfix, release.
  3. Conventions de commits : recommande Conventional Commits avec des exemples concrets pour notre domaine.
  4. Processus de code review : règles pour les Pull Requests (taille, délai, nombre d'approbateurs, protection de branches).
  5. Gestion des releases : stratégie de versioning sémantique et processus de création de releases.
  6. Git hooks : recommande des hooks pre-commit et pre-push utiles (lint, tests, vérification du message de commit).
  7. Documentation : fournis un CONTRIBUTING.md résumant toutes ces conventions.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Why this prompt works

<p>This prompt takes a consultative rather than prescriptive approach: by requesting a comparison of branching models with a justified recommendation, it provides a recommendation adapted to the team's specific context rather than a universal recipe.</p><p>Describing current problems is a key element of this prompt as it allows the AI to diagnose root causes and recommend targeted solutions. For example, frequent conflicts may indicate overly long-lived branches, pointing toward Trunk-Based Development.</p><p>Requesting a CONTRIBUTING.md as the final deliverable is practical as it produces a document directly shareable with the team, reducing friction between the recommendation and its effective adoption.</p>

Use Cases

Setting up a Git workflow for a new teamResolving recurring Git problemsOnboarding new developers

Expected Output

A complete Git strategy with recommended branching model, commit conventions, PR rules, and a ready-to-use CONTRIBUTING.md.

Learn more

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

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Similar Prompts

💻DeveloppementAdvancedAll AIs

Create a Complete REST API from A to Z

A complete prompt to generate a professional REST API with authentication, validation, documentation, and integrated tests.

0232
💻DeveloppementIntermediateAll AIs

Generate Precise Regular Expressions with AI

This prompt generates precise and documented regular expressions, tailored to your programming language, with detailed explanations and built-in tests.

0141
💻DeveloppementIntermediateGemini

Create a Python Automation Script

Create a professional Python automation script with CLI configuration, structured logging, error handling, and tests.

24238
💻DeveloppementAdvancedAll AIs

Analyze and Optimize Algorithmic Complexity

Analyze the Big O complexity of your algorithms and optimize them with appropriate data structures and more efficient algorithms.

40232