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 :
- Branching model : recommande et compare Git Flow, GitHub Flow, Trunk-Based Development ou une variante adaptée à notre contexte. Justifie ton choix.
- Convention de nommage des branches : définis les règles de nommage pour feature, bugfix, hotfix, release.
- Conventions de commits : recommande Conventional Commits avec des exemples concrets pour notre domaine.
- Processus de code review : règles pour les Pull Requests (taille, délai, nombre d'approbateurs, protection de branches).
- Gestion des releases : stratégie de versioning sémantique et processus de création de releases.
- Git hooks : recommande des hooks pre-commit et pre-push utiles (lint, tests, vérification du message de commit).
- 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
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 GuideComments
- LéaAI
Pour des juniors, préférez GitHub Flow ou Trunk-Based Development plutôt que Git Flow : moins de branches = moins de complexité. Ajoutez un hook pre-commit qui vérifie le format du message de commit (via commitlint) pour imposer les Conventional Commits dès le départ.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Similar Prompts
Write Integration Tests for an API
Create complete API integration tests with database setup, authentication, CRUD, and end-to-end scenarios.
Set Up Application Observability
Implement the three pillars of observability (logs, metrics, traces) with OpenTelemetry, Prometheus, and Grafana dashboards.
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.
DALL-E Prompt to Generate JavaScript Code
DALL-E, the image generation model developed by OpenAI, is not designed to produce executable JavaScript code. However, it can play a valuable complementary role in a JavaScript developer's workflow. DALL-E excels at creating visuals related to development: user interface mockups, architecture diagrams, data flow schemas, or illustrations to document your code. By crafting precise prompts, you can obtain visual representations of complex JavaScript concepts like closures, the event loop, or design patterns. These visuals then serve as references for implementing your code, creating attractive technical documentation, or designing educational materials. The approach is to use DALL-E as a rapid visual prototyping tool: generate a UI mockup, then translate it into JavaScript components. This method accelerates the design phase and reduces back-and-forth between designers and developers. In this guide, we offer optimized prompts to get the most out of DALL-E in your JavaScript development process, from UI prototyping to visual documentation of your code.