git
Installation
SKILL.md
Git 工作流技能
本技能提供 Git 版本控制的最佳实践。
快速参考
- 推荐分支模型: GitHub Flow(main + feature 分支 + PR)
- 提交规范: Conventional Commits(
<type>(<scope>): <subject>) - 合并策略: 功能分支 → Squash Merge,同步主分支 → Rebase,长期分支 → Merge
触发条件
git, commit, branch, merge, rebase, PR, pull request, conflict, stash
工作流程
- 检查状态:
git status && git branch -a && git log --oneline -5 - 选择操作: