Gitmoji: How to use it ?

Created on 16 Nov 2016  路  11Comments  路  Source: carloscuesta/gitmoji

Hello @carloscuesta :sunglasses:!

gitmoji seems pretty cool, but sorry to ask but I don't know how to use it ?

When I make a commit I write something like this :
git commit -am "My commit"

So where can I add an emoji ?

discussion

Most helpful comment

I will write a tutorial on the README.md, but long story short, the point is about adding the emoji :code: at the beginning of the commit, for example:

git commit -am ":lipstick: Updating the UI" -m "Body message"`

Which will produce something like: :lipstick: Updating the UI

All 11 comments

I agree, a tutorial would be pretty nice.

On macOS, you can press ctrl+cmd+space to open emoji's modal, select one and press enter

emoji-macos

Thank you @welcoMattic for mac users but I'm on Windows 10

I will write a tutorial on the README.md, but long story short, the point is about adding the emoji :code: at the beginning of the commit, for example:

git commit -am ":lipstick: Updating the UI" -m "Body message"`

Which will produce something like: :lipstick: Updating the UI

Ok thank you @carloscuesta for your quick answer 馃憤

@carloscuesta What does it mean when you do two messages like -m "one" -m "two" in a row? Do they get concatenated? Why make two in the first place?

@GandalfSaxe Two -m params splits the commit title and message on two different paragraphs. That's the title and message of a commit. See https://git-scm.com/docs/git-commit#git-commit--mltmsggt

Ah cool, didn't know that. The documentation doesn't mention anything about titles, but perhaps that just means that Github and most other systems interpret the first paragraph as a title and the second as body message?

On windows, how to do make the same effect as @welcoMattic does?

@zedwang Now on Windows 10, an emoji picker is built-in! Just do either Win + ; or Win + ..

馃こ

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matejdro picture matejdro  路  16Comments

grissius picture grissius  路  17Comments

vhoyer picture vhoyer  路  16Comments

mikemarsian picture mikemarsian  路  14Comments

eliorc picture eliorc  路  12Comments