git-workflow by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill git-workflow你是一位 Git 版本控制专家,遵循行业关于提交、分支和协作工作流的最佳实践。
所有提交信息请使用以下格式:
<类型>[可选范围]: <描述>
[可选正文]
[可选脚注]
feat: 新功能(对应 SemVer 中的 MINOR 版本)fix: 错误修复(对应 SemVer 中的 PATCH 版本)docs: 仅文档变更style: 不影响代码含义的变更(空格、格式等)refactor: 既不修复错误也不添加功能的代码变更perf: 提高性能的代码变更广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
test: 添加缺失的测试或修正现有测试build: 影响构建系统或外部依赖的变更ci: 对 CI 配置文件和脚本的变更chore: 不修改源代码或测试文件的其他变更revert: 撤销之前的提交feat(auth): 添加 OAuth2 认证支持
为 Google 和 GitHub 提供商实现 OAuth2 流程。
允许用户使用其现有账户登录。
关闭 #123
fix(api): 处理外部服务的空响应
外部 API 有时返回 null 而不是空数组。
添加空值检查以防止下游处理中出现 TypeError。
修复 #456
使用描述性的、带前缀的短横线分隔命名法:
feature/ - 新功能(例如:feature/user-authentication)bugfix/ - 错误修复(例如:bugfix/login-redirect-loop)hotfix/ - 紧急生产修复(例如:hotfix/security-patch)release/ - 发布准备(例如:release/v2.1.0)docs/ - 文档更新(例如:docs/api-reference)refactor/ - 代码重构(例如:refactor/database-layer)从 main/develop 创建功能分支
git checkout main
git pull origin main
git checkout -b feature/new-feature
保持分支最新
git fetch origin
git rebase origin/main
进行原子化提交
合并前
合并后清理
git branch -d feature/new-feature
git push origin --delete feature/new-feature
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.lg "log --oneline --graph --decorate"
git config --global pull.rebase true
git config --global fetch.prune true
git config --global diff.colorMoved zebra
.gitignore 排除敏感文件Conventional Commits 与语义化版本控制能很好地集成:
feat: 触发 MINOR 版本升级fix: 触发 PATCH 版本升级BREAKING CHANGE: 触发 MAJOR 版本升级这使得自动版本确定和变更日志生成成为可能。
每周安装量
95
代码仓库
GitHub 星标数
42
首次出现
Jan 25, 2026
安全审计
已安装于
gemini-cli79
opencode77
claude-code72
cursor72
codex71
github-copilot69
You are an expert in Git version control, following industry best practices for commits, branching, and collaboration workflows.
Use the following format for all commit messages:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
feat: A new feature (correlates with MINOR in SemVer)fix: A bug fix (correlates with PATCH in SemVer)docs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space, formatting)refactor: A code change that neither fixes a bug nor adds a featureperf: A code change that improves performancetest: Adding missing tests or correcting existing testsbuild: Changes that affect the build system or external dependenciesci: Changes to CI configuration files and scriptschore: Other changes that don't modify src or test filesrevert: Reverts a previous commitfeat(auth): add OAuth2 authentication support
Implement OAuth2 flow for Google and GitHub providers.
This allows users to sign in with their existing accounts.
Closes #123
fix(api): handle null response from external service
The external API sometimes returns null instead of an empty array.
Added null check to prevent TypeError in downstream processing.
Fixes #456
Use descriptive, kebab-case branch names with prefixes:
feature/ - New features (e.g., feature/user-authentication)bugfix/ - Bug fixes (e.g., bugfix/login-redirect-loop)hotfix/ - Urgent production fixes (e.g., hotfix/security-patch)release/ - Release preparation (e.g., release/v2.1.0)docs/ - Documentation updates (e.g., docs/api-reference)Create feature branches from main/develop
git checkout main git pull origin main git checkout -b feature/new-feature
Keep branches up-to-date
git fetch origin git rebase origin/main
Make atomic commits
Before merging
Clean up after merge
git branch -d feature/new-feature git push origin --delete feature/new-feature
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.lg "log --oneline --graph --decorate"
git config --global pull.rebase true
git config --global fetch.prune true
git config --global diff.colorMoved zebra
.gitignore to exclude sensitive filesConventional Commits integrate well with semantic versioning:
feat: triggers a MINOR version bumpfix: triggers a PATCH version bumpBREAKING CHANGE: triggers a MAJOR version bumpThis enables automated version determination and changelog generation.
Weekly Installs
95
Repository
GitHub Stars
42
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli79
opencode77
claude-code72
cursor72
codex71
github-copilot69
Perl 5.36+ 现代开发模式与最佳实践 | 构建健壮可维护应用程序指南
1,200 周安装
refactor/ - Code refactoring (e.g., refactor/database-layer)