Before you start… If you don't even know Git yet, let alone how to write good commit messages, check out these videos to learn the basics: |
I dig deep into my GitHub account and evaluate some of my commit messages. Learn from my mistakes to start writing better commit messages. Your colleagues will love you, and you’ll immediately become the life of every party (once parties are a thing people do again). 🎉
The criteria I used to evaluate these come from an excellent article by Chris Beam called How to Write a Git Commit Message.
Here are Chris’s 7 tips:
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Now that you know how to write an incredible commit message, you just need some commits to test out your new skills on. Grab my project starter kit to get up and running on a project. Start making those commits!