diff options
Diffstat (limited to 'cheatsheet.txt')
-rw-r--r-- | cheatsheet.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cheatsheet.txt b/cheatsheet.txt index 592d8d9..42655a1 100644 --- a/cheatsheet.txt +++ b/cheatsheet.txt @@ -19,13 +19,27 @@ Global Setup # Enable hooks globally. # - git config --global core.hooksPath <git-project-dir>/hooks + git config --global core.hooksPath <bdep-util-project-dir>/bdep-util/git-hooks # Override the global hooks with the repository-specific hooks (run in a # repository directory). # git config core.hooksPath .git/hooks +Commit Messages + +1. Separate subject from body with a blank line +2. Limit the subject line to 78 characters +3. Capitalize the subject line +4. Do not end the subject line with a period +5. Use the imperative voice in the subject line (e.g., "Implement foo" rather + than "Implemented foo") +6. No articles (a/the) in the subject line +7. Wrap the body at 78 characters +8. Unless this is already captured in the commit payload (e.g., in + code comments, documentation, etc) use the body to explain what + and why + Undo (move to index) last commit git reset --soft HEAD~ |