GitHub Repos - Do you write nice commit messages?

Updated by Brook Jeynes [SSW] 1 year ago. See history

123

Reading ugly commits is not very pleasant and makes it very confusing when you have to check the commit history.

❌ Figure: ![Bad Example: The commits have no meaning.](/uploads/rules/use-emojis-in-your-commits/2020-09-17_17-19-04.png)

Here are a few ways to improve your commit log.

Tip #1: Have a nice, concise comment

Examples:

  • Fixed bug with emoji engine
  • Added new emoji filter
  • Updated Architecture Diagram to have emojis

Tip #2: Using prefixes

Even better is to add a helpful prefix to categorize your commits.

Examples:

  • Fix: Fixed bug with emoji engine
  • Feature: Added new emoji filter
  • Doc: Updated Architecture Diagram to have emojis

Tip #3: Using emojis 💄

In a text message, emojis helps to add emotion and context to plain text. Why not use them in commit messages too 😃?

Examples:

  • 🐛 BUG - Fixed emoji engine in language component
  • 🚀 Feature - Added emoji filter on Snapchat
  • 📄 Doc - Added emoji’s to changelog

There are a bunch more options to choose from - carloscuesta/gitmoji: An emoji guide for your commit messages. 😜 (github.com)

Tip #4: Using gitmoji VSCode extension

Gitmoji - Visual Studio Marketplace (visualstudio.com).

You can even go 🤘 hardcore and use the gitmoji cli - carloscuesta/gitmoji-cli: A gitmoji interactive command line tool for using emojis on commits. 💻 (github.com)

✅ Figure: ![Good Example: Great use of emoji and concise message.](/uploads/rules/use-emojis-in-your-commits/commits-with-emojis.jpg)

See what emojis work best with each topic here: https://gitmoji.dev/

Image

Figure: Emojis list.