git-workflow

Guides Git branching strategies, commit conventions, and collaborative development workflows.

5|15|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill git-workflow-clfigueiredo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/clfigueiredo/hermes-infra-skills/tree/main/.hermes/skills/curso-hermes/git-workflow
Command: npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill git-workflow-clfigueiredo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams struggle with inconsistent Git practices: unclear branching strategies, vague commit messages, messy merge conflicts, and risky history rewrites. This Skill provides concrete patterns for choosing a branching model, writing conventional commits, resolving conflicts, and managing releases. ## Core Features & Use Cases - Branching Strategy Selection: Compares GitHub Flow, trunk-based development, and GitFlow with decision criteria based on team size and release cadence. - Commit & PR Standards: Provides Conventional Commits format, PR description templates, and code review checklists for consistent collaboration. - Conflict Resolution & Release Management: Covers merge vs rebase decisions, conflict resolution commands, semantic versioning, tagging, and changelog generation. - Use Case: A team lead onboarding new developers can use this Skill to establish a GitHub Flow workflow with conventional commit messages, PR templates, and branch naming conventions. ## Quick Start Ask the agent to help you choose a branching strategy and set up conventional commit conventions for your project.

Frequently Asked Questions about git-workflow

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

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

GitHub Flow suits continuous deployment and small-to-medium teams, trunk-based development fits experienced teams with feature flags deploying multiple times daily, and GitFlow works for scheduled releases in enterprise or regulated environments with larger teams.

How do I write a good conventional commit message?▼

Use the format type(scope): subject, where type is feat, fix, docs, refactor, test, chore, perf, ci, or revert. Keep the subject in imperative mood under 50 characters, and use the body to explain why the change was made.

When should I use git rebase instead of merge?▼

Use rebase to update a local-only feature branch with the latest main for a clean linear history. Never rebase branches that have been pushed and shared, that others based work on, or protected branches like main, since rebase rewrites history.

How do I resolve a Git merge conflict?▼

Run git status to see conflicted files, then edit the conflict markers manually, use git mergetool, or accept one side with git checkout --ours or --theirs. After resolving, stage the files with git add and commit the result.

How do I undo a commit that was already pushed?▼

Use git revert HEAD to create a new commit that undoes the changes, then push normally. Avoid git reset --hard or force-pushing on shared branches, since rewriting public history breaks other contributors' work.