managing-git-workflows

Implement Git branching strategies, conventional commits, and hooks for team collaboration workflows.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/masermediagroup-stack/maser-media --skill managing-git-workflows-masermediagroup-stack
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-git-workflows
Source: https://github.com/masermediagroup-stack/maser-media/tree/main/.cursor/skills/community/ai-design-components/skills/managing-git-workflows
Command: npx skills add https://github.com/masermediagroup-stack/maser-media --skill managing-git-workflows-masermediagroup-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires husky, lint-staged, @commitlint/cli, @commitlint/config-conventional, semantic-release, and includes scripts (resource) and references (resource) components.

What problem does it solve? Teams struggle with inconsistent commit messages, chaotic branching, and manual release processes. This Skill establishes structured Git workflows with enforced conventions, automated quality gates, and clear branching strategies. ## Core Features & Use Cases - Branching Strategy Selection: Choose between trunk-based development, GitHub Flow, or GitFlow based on team size, CI/CD maturity, and release cadence. - Conventional Commits & Automation: Enforce commit message formats with Commitlint and Husky, enabling automated versioning and changelog generation via Semantic Release. - Quality Gates: Configure pre-commit, commit-msg, and pre-push Git hooks with lint-staged, plus branch protection rules, CODEOWNERS, and PR templates. - Use Case: A team adopting GitHub Flow can set up Husky hooks, a PR template, branch naming validation via the included script, and automated PR checks in one guided workflow. ## Quick Start Set up conventional commits with Husky pre-commit hooks and a pull request template for my repository.

Frequently Asked Questions about managing-git-workflows

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between trunk-based development, GitHub Flow, and GitFlow?▼

Choose trunk-based development for high-velocity teams with strong CI/CD and 80%+ test coverage, GitHub Flow for web apps with continuous deployment and teams of 2-20, and GitFlow when supporting multiple production versions or scheduled releases with formal QA cycles.

How do I set up conventional commits with Husky and Commitlint?▼

Install husky, lint-staged, @commitlint/cli, and @commitlint/config-conventional as dev dependencies. Run npx husky init, then add a commit-msg hook running commitlint --edit and a pre-commit hook running lint-staged.

What is the difference between merge, squash and merge, and rebase?▼

Merge commits preserve complete history and suit shared feature branches. Squash and merge combines commits into one for a clean main history. Rebase creates linear history without merge commits but must never be used on public branches like main.

Should I use Nx or Turborepo for monorepo management?▼

Nx is best for TypeScript/JavaScript monorepos needing dependency graph analysis and affected commands. Turborepo suits Next.js/React applications with fast incremental builds, remote caching, and simpler configuration.

Why is my Git hook not running after setup?▼

Hooks commonly fail because they lack executable permissions or Husky was not initialized. Run chmod +x on the hook files, verify git config core.hooksPath points to .husky, and reinstall with npx husky init if needed.

When should I avoid rebasing branches?▼

Never rebase public branches like main or develop, or commits already pushed and used by others. Rebasing rewrites history, which breaks collaborators' local repositories and can cause lost work.