Skip to content
affaan-m avatar

Git Workflow

Practical Git workflow patterns covering branching strategies, Conventional Commits, merge versus rebase, PR templates, and conflict resolution.

CCM score
67 of 100
skills.sh installs
11.9K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers GitHub Flow, trunk-based development, and GitFlow, with a table mapping each strategy to team size and release cadence
  • Includes Conventional Commits types with examples, a .gitmessage template enabled via commit.template, and PR title and description templates
  • Advises against rebasing shared, pushed, or protected branches, and recommends --force-with-lease when updating a solo feature branch
  • Designed for teams choosing a branching model, standardizing commit messages, or resolving merge conflicts

Install

$ npx -y skills add affaan-m/ecc --skill git-workflow -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/affaan-m/ecc
Category
Git & Releases
First seen
Jul 14, 2026

Questions

What does the git-workflow skill help with?

The git-workflow skill covers Git branching strategies such as GitHub Flow, trunk-based development and GitFlow, along with commit conventions, cleaning up history before a pull request, merge versus rebase, and resolving conflicts. It applies to collaborative development for teams of all sizes.

How do I install the git-workflow skill?

Run npx -y skills add affaan-m/ecc --skill git-workflow -y in your project. This installs the skill from the affaan-m/ecc repository so the agent can use Git workflow guidance.

When should I use the git-workflow skill?

Use it when choosing a branching strategy, writing commit conventions, cleaning up history before a pull request, deciding between merge and rebase, or resolving conflicts. It is listed in the Git and Releases category on Claude Marketplaces, where it ranks in the top 25.

More from affaan-m/ecc

All 257

Similar to Git Workflow

More Git & Releases