rogerxu / git-tips

Tips for Git
Apache License 2.0
2 stars 3 forks source link

Commit Message #41

Open rogerxu opened 4 years ago

rogerxu commented 4 years ago

Conventional Commits

Understanding Semantic Commit Messages Using Git and Angular

rogerxu commented 2 years ago

Rules

How to Write a Git Commit Message (cbea.ms)

The seven rules of a great Git commit message

  1. Separate subject from body with a blank line
  2. Limit the subject line to 50 characters
  3. Capitalize the subject line
  4. Do not end the subject line with a period
  5. Use the imperative mood in the subject line
  6. Wrap the body at 72 characters
  7. Use the body to explain what and why vs. how
rogerxu commented 2 years ago

Git Commit Template

Use a Git commit message template to write better commit messages (github.com)

Git Configuration

git config --global commit.template ~/.gitmessage