Angular 仓库提交规范 > AngularJS Git Commit Message Conventions

格式

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

scope, body, footer optional

footer 中可以关闭 issues

示例:

docs(changelog): update changelog to beta.5
fix(release): need to depend on latest rxjs and zone.js

The version in our package.json gets copied to the one we publish, and users need the latest of these.

Revert

回滚时格式以 revert:开头,后面跟回滚 commit 的 subject,body 填写回滚 commit 的 hash,This reverts commit <hash>

Type

Scope

指功能模块,视具体项目而定

Subject

Body

应该描述本次提交的变更、变更的原因及对比

可以使用 Closes #234 关闭 issue

Breaking Changes 要以 Breaking Changes: 开头