dev:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:git [2024/01/09 16:23] – [Bug Fix Release Note Commit Message Tag] stompro | dev:git [2025/04/15 13:22] (current) – Include a section on commit template under Commit Guidelines stompro | ||
---|---|---|---|
Line 40: | Line 40: | ||
git config user.email user@hostname | git config user.email user@hostname | ||
git config user.name " | git config user.name " | ||
+ | | ||
+ | #Enable the Evergreen default commit template | ||
+ | git config commit.template commit-template | ||
| | ||
git checkout -b working_branch origin/main | git checkout -b working_branch origin/main | ||
Line 66: | Line 69: | ||
====== Guidelines for contributors ====== | ====== Guidelines for contributors ====== | ||
+ | ===== Commit Template ===== | ||
+ | |||
+ | The Evergreen git repo includes an optional commit template that can be used to help follow standard project formatting. | ||
+ | |||
+ | Enable commit template: | ||
+ | git config commit.template commit-template | ||
+ | Disable commit template: | ||
+ | git config --unset commit.template | ||
+ | | ||
===== Commit messages ===== | ===== Commit messages ===== | ||
- | A commit message should consist of a subject line (i.e., the first line of the commit message), then a blank line, then an optional description of the patch, followed by one or more signoffs. | + | A commit message should consist of a subject line (i.e., the first line of the commit message), then a blank line, then an optional description of the patch, followed by one or more signoffs. |
LP#24544: fix the quuxifier | LP#24544: fix the quuxifier | ||
Line 95: | Line 107: | ||
For simple bug fixes that can be described with one line, include a line that starts with " | For simple bug fixes that can be described with one line, include a line that starts with " | ||
+ | |||
+ | ==== Use Present Tense ==== | ||
+ | |||
+ | " | ||
If the bug fix needs more explanation, | If the bug fix needs more explanation, | ||
Examples: | Examples: | ||
- | Release-Note: | + | Release-Note: |
- | Release-Note: | + | Release-Note: |
===== Testing Plan ===== | ===== Testing Plan ===== | ||
Line 257: | Line 273: | ||
* Galen Charlton | * Galen Charlton | ||
- | * Thomas Berezansky | ||
- | * Dan Scott | ||
* Jason Stephenson | * Jason Stephenson | ||
dev/git.1704835400.txt.gz · Last modified: 2024/01/09 16:23 by stompro