DEV Community

Emojis for Better Git Commit Messages

Babak K. Shandiz on July 18, 2020

🎉 UPDATE 1: You can now access the underlying dataset of this post via git-emoji/dataset-js repository on GitHub. It's also available as a NPM pack...
Collapse
 
gv_rene profile image
René González

I like using emojis on my commit names, but sadly our CI tool use the commit hash + commit name as identifier and it has some issues using commit names that contain emojis :(.
Well at least I can still put emojis on commit comments.

Collapse
 
klyse profile image
klyse

have a look at this website: gitmoji.carloscuesta.me/

Collapse
 
babakks profile image
Babak K. Shandiz • Edited

I've come across gitmoji a few times now and then. Recently, I've also suggested a feature for some kind of contextual emoji search (like the second table in the article,) in the gitmoji-cli repo:
github.com/carloscuesta/gitmoji-cl...

Feel free to endorse the issue, if you think that'll help users, or comment your ideas below that thread. 😊

Collapse
 
sirawit profile image
Dragodzs
Collapse
 
babakks profile image
Babak K. Shandiz

I've come across gitmoji a few times now and then. Recently, I've also suggested a feature for some kind of contextual emoji search (like the second table in the article,) in the gitmoji-cli repo:
github.com/carloscuesta/gitmoji-cl...

Feel free to endorse the issue, if you think that'll help users, or comment your ideas below that thread. 😊

Collapse
 
goodevilgenius profile image
Dan Jones

I can't endorse gitmoji-cli enough. I think it's super convenient. I just do git commit, and gitmoji-cli automatically (using a git hook) gives me an interactive prompt to choose the best emoji.

It's quick and easy and I don't have to think much about which emoji to use.

Collapse
 
sirawit profile image
Dragodzs

It's a good article I wait for use with gitmoji-cli. I love emoji 😄

Collapse
 
riidom profile image
riidom

That's a great list to narrow down the choices, thanks for that. I think, emojis can be well used as a graphical way of tagging or categorizing. Not as replacement for github labels, but rather start the commit message with a single emoji to give an idea what it is about.

This way you could sort raw release logs which consist only of commit messages by text and have everything grouped that belongs together.

But I have to see this done in wild to know if it actually works :) I just had some ideas about it while reading your post.

Collapse
 
babakks profile image
Babak K. Shandiz

Thank you. I'm totally agree with prefixing emojis in commit messages. I, myself, use emojis and the beginning of issue/pull requests, too.

Collapse
 
serkzex profile image
Mujtaba Aldebes

That's a cool post! But since there are no general standardization for the usage of these emojis each team/project will determine their own definition/meaning. That will eventuate in one emoji having different meaning cross projects.

Collapse
 
babakks profile image
Babak K. Shandiz

That is true. Although, in widespread use, especially on open source projects, community-based standards could emerge.

Collapse
 
cybermischa profile image
Mischa Spiegelmock

The plural of emoji is 'emoji'

Collapse
 
babakks profile image
Babak K. Shandiz

No. I now checked with Google.
Google

Collapse
 
cybermischa profile image
Mischa Spiegelmock

I guess it's complicated theatlantic.com/technology/archive...

Collapse
 
spiritupbro profile image
spiritupbro

this is cool usually i use gitmoji i dont know someone really put an effort to create a gitmoji like this good work pal

Collapse
 
babakks profile image
Babak K. Shandiz

You're welcome.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I use commitizen to help insert emoji in every commit. (cz-emoji, actually)

Otherwise, I think it is better to use a good emoji IME, and insert the actual emoji, instead of the text.

Collapse
 
babakks profile image
Babak K. Shandiz

I agree. The :emoji: notation gets in the way when you want to, for example, see the git logs in a terminal.

Collapse
 
mxldevs profile image
MxL Devs

Too bad there's no upside-down smiley. I would put that in every message 🙃

Collapse
 
babakks profile image
Babak K. Shandiz • Edited

For me, 4 out of every 5 commit messages begin with the hammer emoji, i.e., 🔨. So, you can use your own fav. 😉

Collapse
 
limusina10 profile image
limusina10

Nice post!

Collapse
 
babakks profile image
Babak K. Shandiz

Thanks. 😊