SuperAPI AI 工具集

git-workflow

办公与效率

查看项目

更新于 10-15 22:41

技能介绍

用途:帮助团队保持清晰的提交历史、高效协作与可维护的版本控制。涉及 git、commit、branch、merge、pull request 等版本控制操作,或在创建、审查提交、管理分支与发布时自动激活。

主要能力:提交信息遵循 Conventional Commits 格式,如 feat、fix、docs、style、refactor、perf、test、build、ci、chore,并给出示例与规范(祈使语气、主题 50 字内、正文 72 字换行、footer 关联 issue)。分支采用类型/编号-简述命名,如 feature/123-oauth-authentication,并介绍 Git Flow 角色:main、develop、feature/、fix/、release/、hotfix/。提供常用命令: git checkout -b feature/123-new-feature git rebase develop git commit --amend --no-edit git rebase -i HEAD~3 git stash push -m "WIP: working on feature" git cherry-pick <commit-hash> git revert <commit-hash> 还包括 PR 描述模板与评审建议、fork 同步上游、冲突解决、Git 配置与别名、git-secrets 与 GPG 签名提交、.gitignore 模式。

适用场景:日常提交与分支管理、发布准备、代码评审、安全合规和团队协作规范落地。

限制:资料未提供该技能的平台支持范围、安装方式、版本要求与收费信息。使用 reset --hard、amend 已推送提交等操作需谨慎。