git-workflow

Implement consistent Git branching strategies and commit message conventions.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/enoch-robinson/agent-skill-collection --skill git-workflow-enoch-robinson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/enoch-robinson/agent-skill-collection/tree/main/skills/development/git-workflow
Command: npx skills add https://github.com/enoch-robinson/agent-skill-collection --skill git-workflow-enoch-robinson

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

这个技能提供专业的 Git 工作流与分支管理最佳实践,帮助团队在协作中保持代码库的稳定性、一致性和可维护性。

Core Features & Use Cases

  • 分支策略与命名规范:如 feature/、bugfix/、hotfix/ 等命名约定,确保按任务驱动开发。
  • 提交信息规范:采用 Conventional Commits 风格,生成清晰、可追溯的变更历史。
  • 常用工作流与冲突处理:从 feature 分支到 develop/main 的日常工作流,以及冲突解决原则。

Quick Start

将本技能作为参考,在日常开发中应用以下基础操作:

  • 创建并切换分支:git checkout develop
  • 从功能分支开始工作:git checkout -b feature/your-feature
  • 按规范提交:git commit -m "feat(auth): 添加登录功能"

Frequently Asked Questions about git-workflow

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

FAQPage Schema
What is a standard git workflow for team collaboration?

A standard git workflow for team collaboration uses branching strategies like feature and bugfix branches, merges changes into develop or main, and enforces conventional commit messages to maintain a stable, traceable codebase history.

How do I write conventional commit messages for feature branches?

To write conventional commit messages for feature branches, use prefixes like feat, fix, or chore followed by a scope, such as git commit -m "feat(auth): add login". This generates a clear and traceable change history.

How do I resolve merge conflicts in a develop branch?

To resolve merge conflicts in a develop branch, apply safe merge workflows by pulling the latest changes, manually resolving conflicting code sections, and committing the resolved files to maintain project stability.

What's the best way to name branches in a git workflow?

The best way to name branches in a git workflow is using task-driven conventions like feature/, bugfix/, or hotfix/ prefixes. This ensures branches are organized by their specific development purpose.

Do I need any specific git tools to implement these branching strategies?

You do not need any specific git tools or extensions to implement these branching strategies. The workflow relies entirely on standard git commands like git checkout and git commit for creating branches and merging changes.