git-workflow
SolidGit 工作流专家。规范化版本控制,确保提交历史清晰可追溯。支持 Conventional Commits 规范、Pull Request 最佳实践、分支管理策略和自动化工作流。
AI & Automation 48 stars
7 forks Updated today MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
AI & Automation Featured
git-workflow
安全处理 Git 状态检查、提交信息、commit、分支、push、PR 和 rebase。用于用户要求检查改动、生成或创建提交、管理分支、推送、发起 PR 或整理历史时;严格区分每个动作的授权,并保护工作树中已有和无关的修改。
835 Updated yesterday
laolaoshiren AI & Automation Listed
git-workflow
使用时机:对项目做 git/GitHub 维护——提交、推送、创建/设置仓库、更新仓库描述与标签、同步 README、清理 git 状态时。触发词:commit、push、提交、推送、GitHub、仓库、git 状态、gh。
1 Updated 1 months ago
KUN11-UAER Code & Development Listed
neeko-commit
自动分析当前 Git 工作树的未提交更改,并严格按照 Conventional Commits 规范生成、格式化或执行代码提交。
12 Updated 3 days ago
tincopper