Git Emojis are fun đł
Remember when your girlfriend got mad at you for not knowing what she said three years ago on Wednesday at 11.17 pm ? Thatâs exactly what a git commit is like. And if youâve been single all your life let me explain it to you in more detail.
It is important to write a commit message that is informative and it should actually make sense (donât say your wish or you decide to your GF)
git-commit documentation states:
Create a new commit containing the current contents of the index and the given log message describing the changes.
Why git-emoji is fun?
Programming, code is inherently flat and sometimes tiresome. git-emoji helps me to add faces, colours, and emotions.
To put in very simple, these are some of my commits before using emoji.
After using git-emoji which makes my commits look like
Doesnât look good with emoji than plain texts.? Of Course, Yes.
It makes it easy to understand once you get used with git-emoji. Mostly, itâs fun. đ
How to get started with git-emoji ?
To start using git-emoji in your commit messages from the command line youâll need to install gitmoji-cli.
â ď¸Take a break, npm install will take a longggggg time. đ¤
(P.S: I was manual checking the emoji and adding it to my commit messages. Thanks to Carlo for gitmoji-cli)
Once you installed as globally, then you are ready to commit message with emoji.
gitmoji
is an interactive client for using gitmoji on commit messages.
Commit via gitmoji:
â ď¸You can add gitmoji as your pre-commit hook and make all your teammates follow the same standards.
Well done! You have successfully committed your message with emoji.
Some gitmoji commands:
gitmoji -l
â List all the available gitmojis
gitmoji -s search_query
â Search gitmojis
Why do I think gitmoji is useful?
- Your todayâs code is a future chronicle, so searching the commit messages will be hard. Additionally, we cannot guarantee that it will be meaningful for us.
- Incase of gitmoji, we can search for commit messages with emoji.
Thanks for reading đ Happy Coding đ¨âđť