Graphics in GitHub commit messages

y2p picture y2p · Mar 16, 2012 · Viewed 22.4k times · Source

How to add graphics/image in git commit messages (pushed to Github)?

Answer

Rory O'Kane picture Rory O'Kane · May 3, 2012

Here is a list of codes to put in your commit message to get those icons:

Emoji cheat sheet

For instance, to get this commit message:

Release 2.0.1 :gem::star2: (example commit message with emoji)

enter Release 2.0.1 :gem::star2:.

If you see an icon on GitHub you want to use, hover your mouse over it, and the tooltip will tell you that icon’s code. Or copy and paste a commit message to convert icons to their codes.

That cheat sheet website is open-source – here is its code.

Caveats: you can’t put an arbitrary image into a commit message – these codes work on GitHub only because GitHub implemented the emoji on that list. And of course, it is up to the Git interface you are using to display emoji or link URLs – Git’s command-line interface will probably not do either of those.