← [ BACK_TO_NOTES ]

Git提交规范

使用约定式提交(Conventional Commits):

#git #concept #seed

Git提交规范

1. 提交规范

使用约定式提交(Conventional Commits):

 格式:<type>[optional scope]: <description>
git commit -m "feat(auth): add login functionality"
git commit -m "fix(ui): resolve button alignment issue"
git commit -m "docs: update API documentation"

常用类型:

  • feat: 新功能
  • fix: Bug 修复
  • docs: 文档更新
  • style: 代码格式调整
  • refactor: 代码重构
  • test: 测试相关
  • chore: 构建过程或辅助工具的变动

2. 分支命名规范

 功能分支
feature/user-authentication
feature/payment-integration

 修复分支
fix/header-layout-bug
hotfix/critical-security-patch

 发布分支
release/v1.2.0

3. .gitignore 配置

 依赖目录
node_modules/
npm-debug.log*

 构建输出
dist/
build/
.nuxt/

 环境配置
.env
.env.local
.env.production

 IDE 配置
.vscode/
.idea/

 缓存文件
.cache/
.parcel-cache/
创建于 2025/1/1 更新于 2026/7/15
Digital Biome
Access

键盘导航

j / k / ↑ / ↓
选择对象
Enter / o
打开选择
/ 或 Ctrl+K
全站搜索
i / f / 1–4
筛选当前列表
g → h / l / p / t / a
首页 / 笔记 / 项目 / 工具 / About
r → 1–9
打开所选对象的关联
u
返回上一页
Esc
关闭浮层 / 取消命令;输入框内清空文本