A place to record scattered bits of knowledge learned each day.
-
Git Conventional Commits
🚀 常见提交类型
类型 含义说明 feat ✨ 新功能:引入了新的功能或特性。 fix 🐛 修复:修复了 bug。 docs 📝 文档:只修改了文档内容,例如 README。 style 💅 样式:代码格式修改,不影响功能(如空格、缩进、分号)。 refactor 🔨 重构:代码重构,没有添加新功能或修复 bug。 perf ⚡ 性能优化:提高了性能的代码更改。 test ✅ 测试:新增或修改测试代码。 chore 🔧 杂务:不属于上述类型的其他更改,如构建系统或依赖管理。 build 🛠️ 构建:影响构建系统或外部依赖的更改(如 gulp
,npm
等配置)。ci 🤖 持续集成:CI/CD 配置文件和脚本的修改。 revert ⏪ 回退:回滚先前的提交。 merge 🔀 合并:合并分支操作(不常用于标准提交类型)。 🧠 总结用法格式:
<type>(<scope>): <subject>
例如:
feat(core): support new plugin API fix(login): incorrect redirect URL chore: update npm dependencies