git-workflow

Solid

Git 工作流专家。规范化版本控制,确保提交历史清晰可追溯。支持 Conventional Commits 规范、Pull Request 最佳实践、分支管理策略和自动化工作流。

AI & Automation 48 stars 7 forks Updated today MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Git Workflow - Git 工作流专家 ## 核心理念 **良好的 Git 实践** 是团队协作的基础: ``` ┌─────────────────────────────────────────────────────────┐ │ 规范提交 → 清晰历史 → 易于回溯 → 高效协作 │ └─────────────────────────────────────────────────────────┘ ``` **核心原则**: - ✅ **提交历史即文档** - ✅ **原子提交,单一职责** - ✅ **清晰的可追溯性** - ✅ **易于 Code Review** --- ## 何时使用本技能 在以下场景时激活: - 需要 Git 提交(commit) - 创建 Pull Request / Merge Request - 代码分支管理 - 版本发布 - 提到"git"、"提交"、"分支"、"PR" --- ## Conventional Commits 规范 ### 提交格式 ``` <type>(<scope>): <subject> <body> <footer> ``` ### Type 类型 | Type | 说明 | 示例 | |------|------|------| | `feat` | 新功能 | `feat(auth): add OAuth2 login` | | `fix` | Bug 修复 | `fix(api): resolve timeout issue` | | `docs` | 文档变更 | `docs(readme): update installation` | | `style` | 代码格式 | `style(lint): fix indentation` | | `refactor` | 重构 | `refactor(utils): extract validator` | | `perf` | 性能优化 | `perf(db): add query index` | | `test` | 测试相关 | `test(user): add login tests` | | `chore` | 构建/工具 | `chore(deps): upgrade to v2.0` | | `revert` | 回滚提交 | `revert: feat(auth)` | ### 提交示例 ```bash # 简单提交 feat(auth): add JWT token validation # 完整提交 feat(payment): integrate Stripe payment gateway 使用 Stripe API 实现信用卡支付处理。 增加用于更新支付状态的 webhook 处理。 - Add Stripe client initialization - Implement payment intent creation - Add webhook endpoint for status updates - Handle payment success/failure scenarios Closes #123 Related #456 ``` --- ## 提交最佳实践 ### 1. 原子提交原则 ```bash # ❌ 不好的做法:一次提交多个变更 git commit -m "feat: ad...

Details

Author
huangwb8
Repository
huangwb8/skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category