P
BeginnerAll AIs

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

Adapt this prompt

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:

  1. Recommendation: which strategy to adopt (GitFlow, GitHub Flow, trunk-based) and why
  2. Branch diagram: ASCII representation of the workflow
  3. Branch naming convention (feature/, fix/, release/...)
  4. Commit convention: Conventional Commits format with examples
  5. Pull Request process: PR template, merge criteria, number of approvals
  6. Branch protection rules to configure in GitHub/GitLab
  7. Release procedure step by step
  8. 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

Structuring Git workflow for a new teamResolving recurring merge conflictsPreparing onboarding for new developers

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 Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further