This is a comprehensive reference for Git workflows that covers the three main branching strategies (GitHub Flow, Trunk-Based, and GitFlow) with clear guidance on when to use each based on team size and release cadence. It includes a solid Conventional Commits guide, practical merge versus rebase rules, and PR templates you can actually use. The conflict resolution section is straightforward without over-explaining. What makes this useful is the decision matrices and the clear "when NOT to rebase" warnings, which address the mistakes teams actually make. If you're setting up Git practices for a new team or trying to standardize an existing workflow, this gives you the templates and rules without the usual Git tutorial bloat.

skills.sh installs
4.2K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Files

Git Workflow Patterns

Best practices for Git version control, branching strategies, and collaborative development.

When to Activate

  • Setting up Git workflow for a new project
  • Deciding on branching strategy (GitFlow, trunk-based, GitHub flow)
  • Writing commit messages and PR descriptions
  • Resolving merge conflicts
  • Managing releases and version tags
  • Onboarding new team members to Git practices

Branching Strategies

GitHub Flow (Simple, Recommended for Most)

Best for continuous deployment and small-to-medium teams.

main (protected, always deployable)
  │
  ├── feature/user-auth      → PR → merge to main
  ├── feature/payment-flow   → PR → merge to main
  └── fix/login-bug          → PR → merge to main

Rules:

  • main is always deployable
  • Create feature branches from main
  • Open Pull Request when ready for review
  • After approval and CI passes, merge to main
  • Deploy immediately after merge

Trunk-Based Development (High-Velocity Teams)

Best for teams with strong CI/CD and feature flags.

main (trunk)
  │
  ├── short-lived feature (1-2 days max)
  ├── short-lived feature
  └── short-lived feature

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Categories
Git & Pull Requests, Automation & Workflows
First seen
May 16, 2026

More from affaan-m/everything-claude-code

All 256
1affaan-m avatargithub-opsaffaan-m/everything-claude-codegithub ops3.6Kskills.sh installs
2mattpocock avatargithub-triagemattpocock/skillsgithub triage3.2Kskills.sh installs
3steipete avatargithubsteipete/clawdisgithub2.8Kskills.sh installs
4cursor avatarweekly-reviewcursor/pluginsProduce a weekly synthesis of authored commits with highlights by bugfix, tech debt, and net-new work2.5Kskills.sh installs
5xtone avatarcode-reviewxtone/ai_development_toolsPRやコード変更の汎用コードレビューを実施します。コードの品質、セキュリティ、設計を共通基準で評価し、approve/rejectを判断します。「このPRをレビュー」「コードレビューして」「マージ前チェック」などの依頼や、gh pr viewコマンドの実行時に使用してください。2.3Kskills.sh installs
6cursor avatarnew-branch-and-prcursor/pluginsCreate a fresh branch, complete work, and open a pull request2.2Kskills.sh installs