Define a Git Branching Strategy for a Team
Recommends and documents 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.
You are an expert in Git workflows and DevOps practices. Help me define the most suitable branch management strategy for my team.
Context:
- Team size: [team size] developers
- Desired deployment frequency: [deployment frequency] (e.g., continuous, weekly)
- Environments: [environments] (e.g., dev, staging, production)
- Project type: [project type] (SaaS, open-source library, mobile app)
- Team's Git skill level: [Git skill level]
Current problems: [current problems]
Provide:
- Recommendation: which strategy to adopt (GitFlow, GitHub Flow, trunk-based) and why
- Branch diagram: ASCII representation of the workflow
- Branch naming convention (feature/, fix/, release/...)
- Commit convention: Conventional Commits format with examples
- Pull Request process: PR template, merge criteria, number of approvals
- Branch protection rules to configure in GitHub/GitLab
- Release procedure step by step
- Conflict resolution guide for common cases
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
Team size and deployment frequency are the two determining factors in strategy choice. The ASCII diagram makes the workflow immediately visualizable. Conventional Commits have become an industry standard and their adoption improves automatic changelogs.
Use Cases
Expected Output
A justified Git strategy recommendation, ASCII workflow diagram, branch and commit conventions, PR process, protection rules and release procedure.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.