Though not required, it's a good idea to begin the commit message with a single short (less than 50 character) line summarizing the change, 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 ...
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 =~ ^\[.{...
Always insert an empty line between the subject line and the body. This space allows for various git tools to effectively format commit histories. When asked for a concise git history, many tools print out just the first line of each commit. Keep this separate from the body and you'll mak...
Feature (package-name-1): Message 1. Closes: #123 Fix (package-name-2): Message 2. Closes: #456 Tests: A change across the entire project. An example of an invalid commit message with incorrectly separated lines (the second line will be treated as a part of the first line): ...
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] [--allow-empty] [--allow-empty-message] [--no-verify] [...
First Usage Runnpx git-conventional-commits init Adjustconfig filegit-conventional-commits.yamlto your needs Config File Examplegit-conventional-commits.yaml ---convention:commitTypes: -feat-fix-perf-refactor-style-test-build-ops-docs-mergecommitScopes:[]releaseTagGlobPattern:v[0-9]*.[0-9]*.[0...
Getting in the habit of creating quality commit messages makes using and collaborating with Git a lot easier. — Pro Git Book,(1) You might think that you can get away with any old commit naming convention. This could work for a while, but what about after you've added hundreds of com...
pushFetchFirst Shown when git-push[1] rejects an update that tries to overwrite a remote ref that points at an object we do not have. pushNeedsForce Shown when git-push[1] rejects an update that tries to overwrite a remote ref that points at an object that is not a commit-ish, ...
First Usage Run npx git-conventional-commits init Adjust config file git-conventional-commits.yaml to your needs Config File Example git-conventional-commits.yaml --- convention: commitTypes: - feat - fix - perf - refactor - style - test - build - ops - docs - merge commitScopes: [] rel...
We're an all-remote company that allows people to work from almost anywhere in the world. It's important for us to practice clear communication in ways that help us stay connected and work more efficiently.