2. commit-msg hook:在执行git commit命令后,编辑提交信息(commit message)之前触发,可用于检查提交信息的格式和内容。 例如,可以创建一个commit-msg脚本来检查提交信息的格式是否满足要求: “`bash #!/bin/bash commit_msg_file=$1 commit_msg=$(cat $commit_msg_file) if [[ ! $commit_msg =~ ^\[.{...
DESCRIPTION Create a new commit containing the current contents of the index and the given log message describing the changes. The new commit is a direct child of HEAD, usually the tip of the current branch, and the branch is updated to point to it (unless no branch is associated with the...
-feat-fix-perf-mergeincludeInvalidCommits:truecommitScopes:[]commitIgnoreRegexPattern:"^WIP"headlines:feat:Featuresfix:Bug Fixesperf:Performance Improvementsmerge:MergesbreakingChange:BREAKING CHANGEScommitUrl:https://github.com/qoomon/git-conventional-commits/commit/%commit%commitRangeUrl:https://github.com...
followed by a blank line and then a more thorough description. The text up to the first blank line in a commit message is treated as the commit title, and that title is used throughout Git. For example, Git-format-patch(1) turns
<type>[optional scope]:<description> [optional body] [optionalfooter(s)] 译文: <类型>[可选 范围]:<描述> [可选 正文] [可选 脚注] 提交说明包含了下面的结构化元素,以向类库使用者表明其意图: fix:类型为fix的提交表示在代码库中修复了一个 bug(这和语义化版本中的PATCH相对应)。 feat:类型...
Angular 规定 commit message 的结构如下: <type>[optional scope]: <description> [optional body] [optional footer(s)] header + body(可选) + footer(可选) header header 包含三部分:type + scope + subject。比如, feat(lang): add polish language (1)type feat:新功能(feature) fix:修补bug docs...
When you look at the commit history of the AngularJS project on GitHub, you quickly realize how a meaningful and consistent convention for git commit messages can make it much easier to maintain a large project with many contributors.
git-commit - Registra cambios en el repositorio SINOPSIS git commit[-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend] [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>] [-F <file> | -m <msg>] [--reset-author] [--...
#Convention Commit message template: Type (package-name): A short sentence about the commit. Closes #XXX. Type (another-package-name): If the change affects more than one package, it is possible to put multiple entries at once. Closes #YYY. Optional description. MAJOR BREAKING CHANGE (packag...
Note:Don't use spaces in branch names because it creates an orphan commit, which is not reachable from any other commit in the repository. Avoid special characters other than hyphens and slashes since they can cause issues in Git. Using Numbers ...