接入参考git-commit-style-guide项目。具体步骤如下: 第一步:在工程跟目录下的package.json文件加入如下代码所示的scripts和dependencies内容,版本号为3位版本号。 { "name": "application-name", "version": "0.1.0", "scripts": { "commitmsg": "validate-commit-msg", "commit": "git-cz ", "changelog...
https://udacity.github.io/git-styleguide/ 提交信息 # Message Structure # git 的 commit messages 由以下三部分组成,title, 可选的 body,可选的 footer,如: type: subject body footer 其中title 由type 和subject 组成 The Type # type 从以下列表中选择: feat: 新功能 fix: bug 修复 docs: 修改文...
还有一种特殊情况,如果当前 commit 用于撤销以前的 commit,则必须以revert:开头,后面跟着被撤销 Commit 的 Header。 revert:feat(pencil):add 'graphiteWidth' option This reverts commit667ecc1654a317a13331b17617d973392f415f02. 规范Git 提交信息工具 上面的内容比较多,记下来比较繁琐的,特别是有时候我们很难...
如果commit 用于撤销之前的 commit,这个 commit 就应该以revert:开头,后面是撤销这个 commit 的 header。在 body 里面应该写This reverts commit <hash>.,其中的 hash 是被撤销 commit 的 SHA 标识符。 revert: feat(pencil):add'graphiteWidth'option This revertscommit667ecc1654a317a13331b17617d973392f415f...
type 指明 git commit 的类别,应该使用以下类型 『feat』: 新增功能 『fix』: 修复 bug 『docs』: 仅仅修改了文档,比如 README, CHANGELOG 等等 『test』: 增加/修改测试用例,包括单元测试、集成测试等 『style』: 修改了空行、缩进格式、引用包排序等等(不改变代码逻辑) ...
用于说明 commit 的提交类型(必须是以下几种之一)。 feat 新增功能 fix 修复 bug docs 文档变更 style 代码格式(不影响功能,例如空格、分号等格式修正) refactor 代码重构 perf 改善性能 test 测试 build 变更项目构建或外部依赖(例如 scopes: webpack、gulp、npm 等) chore 变更构建流程或辅助工具 revert 代码回退...
1. commit message 规范 <type>(<scope>): <subject>// 空一行<body>// 空一行<footer>// 示例docs(guide): updated fixed docs from Google DocsCouple of typos fixed:- indentation- batchLogbatchLog -> batchLog- start periodic checking- missing brace type: 说明 commit 类型scope:可选,用于说明...
Commit Message Guidelines Writing Documentation Development Setup This document describes how to set up your development environment to build and test AngularJS, and explains the basic mechanics of using git, node, yarn and ...
Commit message style guide for Git The first line of a commit message serves as a summary. When displayed on the web, it's often styled as a heading, and in emails, it's typically used as the subject. As such, you should capitalize it and omit any trailing punctuation. Aim for about...
Git Commit 标准化 1 前言Git Commit Message 应该清晰明了,要用精简的语言说明本次提交的目的,其主要作用是为了后续的搜索、版本的回滚、合并冲突的追溯等操作。 我们在开发时一直以来对 Git Commit 格式有个约定俗称的要求,所以就没落实明确的规范。因为没有明确的规范,就会导致提交的消息较为随意。甚至出现「...