affaan-m avatar

Git Workflow

Covers the major Git workflows you'll actually encounter: GitHub Flow for continuous deployment, trunk-based for high-velocity teams, and GitFlow for scheduled releases. Includes a practical decision matrix based on team size and release cadence. The conventional commits guide is comprehensive with good/bad examples, and the merge versus rebase section clearly explains when to use each (with warnings about when not to rebase shared branches). Also has PR templates and conflict resolution strategies. This is solid reference material if you're setting up workflows for a new team or need to document your current practices. The examples are concrete enough to copy and adapt.

skills.sh installs
6K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --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/ecc
Categories
Git & Pull Requests, Automation & Workflows
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1affaan-m avatargithub-opsaffaan-m/eccGitHub repository operations, automation, and management. Issue triage, PR management, CI/CD operations, release management, and security monitoring using the g5.6Kskills.sh installs
2samber avatarconventional-gitsamber/cc-skillsConventional Commits v1.0.0 branch naming, worktree naming, and commit message standards for GitHub and GitLab projects. Use when creating branches, naming work5.4Kskills.sh installs
3getsentry avatarpr-writergetsentry/skillsCreate or refresh reviewer-facing PR titles and descriptions. Use when opening a PR, updating its title or body, or preparing branch changes for review.4.6Kskills.sh installs
4vinvcn avatarcode-reviewvinvcn/mattpocock-skills-zh-cn从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/PRD 的要求?)两个轴线审查变更。两个审查会在并行子代理中运行,并并排报告。适用于用户想审查 branch、PR、进行中的变更,或要求 4.4Kskills.sh installs
5softaworks avatarcommit-worksoftaworks/agent-toolkitCreate high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Us4.2Kskills.sh installs
6vinvcn avatarresolving-merge-conflictsvinvcn/mattpocock-skills-zh-cn适用于需要解决正在进行的 git merge/rebase 冲突时。3.5Kskills.sh installs