- Use the past tense ("Added feature" not "Add feature")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- Consider starting the commit message with an applicable emoji:
- ➕ when adding a feature
- ➖ when removing a feature
- 🎉 when improving a feature
- 🎨 when improving the format/structure of the code
- 🐎 when improving performance
- 🚱 when plugging memory leaks
- 🔞 when using dirty hacks
- 📝 when writing docs
- 🐛 when fixing a bug
- 🔥 when removing code or files
- 💚 when fixing the CI build
- 💻 when making changes to the infrastructure
- ✅ when adding tests
- 🔒 when dealing with security
- ⬆️ when upgrading dependencies
- ⬇️ when downgrading dependencies
- 👕 when removing linter warnings
(source)