A template to help you write better commits
######## Subject Line (50 characters) ############ | |
# - Use the imperative mood (imagine the words "This will") | |
# - Capitalize the first letter | |
# - Limit to 50 characters | |
# - Do not end the subject line with a period | |
######## The Body (72 characters per line) ############################# | |
# - Add line breaks so each line is a maximum of 72 characters | |
# - Explain the thinking behind the commit | |
# - Do not use Markdown | |
######## Issue or Ticket Reference ######## | |
# - The last line should reference the issue or ticket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Add this template to your git config:
~/.git/.commit_template
) and copy over the templategit config --global commit.template /path/to/.commit_template