After building hundreds of open source software I've ended up inventing a git commit log standard called
EMOJI-LOG
.
I like emoji. I like βem a lot. Programming, code, geeks/nerds, open source, all of that is inherently dull and sometimes boring. Emoji (which is, in fact, the plural of emoji) helps me add colors and emotions to the mix. Nothing bad if you want to add emotions to this 2D flat text-based world of code. I found out that instead of memorizing hundreds of emoji it's better to keep the categories small and general.
- IMPERATIVE β
- Make your Git commit messages imperative.
- Write commit message like you're giving an order.
- E.g. Use β
Add
instead of βAdded
. - E.g. Use β
Create
instead of βCreating
.
- RULES β
- Small number of categories β easy to memorize.
- Nothing more nothing less.
- E.g.
π¦ NEW
,π IMPROVE
,π FIX
,π DOC
,π RELEASE
, andβ TEST
- ACTIONS β
- Make git commits based on actions you take.
- Use a good editor like VSCode to commit the right files with commit messages.
Only use the following Git Commit Messages. Simple and small foot print is the key here.
-
π¦ NEW: IMPERITIVE_MESSAGE_GOES_HERE
Use when you add something completely new. E.g.
π¦ NEW: Add Git ignore file
-
π IMPROVE: IMPERITIVE_MESSAGE_GOES_HERE
Use when you improve/enhance piece of code like refactoring etc. E.g.
π IMPROVE: Remote IP API Function
-
π FIX: IMPERITIVE_MESSAGE_GOES_HERE
Use when you fix a bug β need I say more? E.g.
π FIX: Case convertor
-
π DOC: IMPERITIVE_MESSAGE_GOES_HERE
Use when you add documentation like
README.md
, or even inline docs. E.g.π DOC: API Interface Tutorial
-
π RELEASE: IMPERITIVE_MESSAGE_GOES_HERE
Use when you release a new version. E.g.
π RELEASE: Version 2.0.0
-
β TEST: IMPERITIVE_MESSAGE_GOES_HERE
Use when you release a new version. E.g.
β TEST: Mock User Login/Logout
β That's it for now. Nothing more nothing less.
For quick prototyping, I have made the following functions that you can add to your .bashrc
/.zshrc
files and use Emoji-Log quickly.
#.# Better Git Logs.
### Using EMOJI-LOG (https://github.com/ahmadawais/Emoji-Log).
# Git Commit, Add all, and Push β in one step.
function gcap() {
git add . && git commit -m "$*" && git push
}
# NEW.
function gnew() {
gcap "π¦ NEW: $@"
}
# IMPROVE.
function gimp() {
gcap "π IMPROVE: $@"
}
# FIX.
function gfix() {
gcap "π FIX: $@"
}
# RELEASE.
function grlz() {
gcap "π RELEASE: $@"
}
# DOC.
function gdoc() {
gcap "π DOC: $@"
}
# TEST.
function gtst() {
gcap "β
TEST: $@"
}
Here's a list of repos that make use of Emoji-Log.
- Create-Guten-Block Toolkit β
- VSCode Shades of Purple Theme β
- Ahmad Awais GitHub Repos β β Latest repos on this account.
- CaptainCore CLI (WordPress Management Toolkit) β
- CaptainCore GUI (WordPress plugin) β
- You?! Add your repo to the list after adding the Emoji-log badge to your readme.
If your repo uses EMOJI-LOG
then you can add any of the following badges to your read me and send me a PR to list your repo here.
- STYLE: Flat Square
- MARKDOWN β
[![emoji-log](https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/flat.svg)](https://github.com/ahmadawais/Emoji-Log/)
- HTML β
<a href="https://github.com/ahmadawais/Emoji-Log/"><img alt="emoji-log" src="https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/flat.svg" /></a>
- STYLE: Flat Rounded
- MARKDOWN β
[![emoji-log](https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/flat-round.svg)](https://github.com/ahmadawais/Emoji-Log/)
- HTML β
<a href="https://github.com/ahmadawais/Emoji-Log/"><img alt="emoji-log" src="https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/flat-round.svg" /></a>
- STYLE: Non flat Rounded
- MARKDOWN β
[![emoji-log](https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/non-flat-round.svg)](https://github.com/ahmadawais/Emoji-Log/)
- HTML β
<a href="https://github.com/ahmadawais/Emoji-Log/"><img alt="emoji-log" src="https://cdn.rawgit.com/ahmadawais/stuff/ca97874/emoji-log/non-flat-round.svg" /></a>
If you'd like us to keep producing professional free and open source software (FOSS). Consider paying for an hour of my dev-time. We'll spend two hours on open source for each contribution. Yeah, that's right, you pay for one hour and get both of us to spend an hour as a thank you.
- π $99.99 β Support for one hour or more β
- π° $49.99 β Support half an hour maintenance β
- βοΈ $9.99 β Buy us lunch or coffee to keep us trucking #OpenSource β
MIT Β© Ahmad Awais.
Thanks to Munawar for making awesome badges for this project. This FOSS (free and open source software) project is updated and maintained with the help of awesome businesses listed below. Without the support from these amazing companies/individuals, this project would not have been possible. What/How? Read more about it β
Feel free to say π on Twitter @MrAhmadAwais β