Github commit emojis

It’s nice to know how to commit using emojis.

Github APIv3 provide a list of emojis1 that can be used in the commit messages. The names must be used between colon punctuation marks in any point of the the comment message.

For instance, the following value (returned from the api):

{
  "beer": "https://github.githubassets.com/images/icons/emoji/unicode/1f37a.png?v8"
}

Returns the following image:

Beer

And this image can be used in a commit message, as following:

git commit -m ":beer: adding post that explains emoji usage in github commits"

The result is the following:

Emoji Commit adding post that explains emoji usage in github commits

  1. There is also a cheat sheet that presents all the emojis, pointed by the GitHub Guide “Mastering Markdown” page ↩︎