I'll write a little bit about a topic that is not related to code, seemingly not that important, but it is quite practical in daily programming. Ho...
For further actions, you may consider blocking this person and/or reporting abuse
Awesome article, this subject is often forgotten! Did you know about gitmoji convention? I find it nice for small projects 👍 It lacks of scope feature for bigger projects or monorepo.
The author also made a cli and I made a changelog generator called gitmoji-changelog (it takes care of semantic versioning) for those who are interested 😉
I've heard about this and agree that this is maybe a nice touch for personal projects or smaller team projects, also maybe as an introduction to semantic commit for newbie coders.
On the other hand, IMO, it's a bit silly and not much professional for large scale and corporate projects 😄 Can't imagine what would I told my PM when he asks why we have emojis in changelog/commit list 😅
We use it in my company on large corporate projects. Our customer added it in their development guidelines. Emojis or words is a matter of habits IMO. The only problem we encountered is the lack of scope (as I said in my previous) since we work on two big monorepos. We are discussing about adding the scope in our commit convention right now 😉
We had to provide arguments about emojis instead of words. More and more open source repositories are using emojis in their commit messages. It find it nice when you are browsing commit history to quickly identify commits. It could be the subject of a blog post 😂
That sounds awesome! But I'm not sure that emojis are searchable by grep or similar command-line tools, and that's one of the most important point in my case.
This is very true, I think that it's easier to identify a commit just by looking at emoji instead of looking down the wall of commits and trying to find that one refactor that messed up everything :D
What is nice with gitmoji is that it uses emojis' names so you can grep "sparkles" to get all commits introducing new features for example (commit message: "✨ Add an awesome feature"). The software interprets the string as an emoji. Am I clear?
Edit: Dev.to transforms the string in emoji too 😂
Cool, didn't know that :)
Thanks for sharing. I knew about the git emoji style but not the log.
I wrote an alias so you can turn semvar commits without emojis into a log with emojis :)
github.com/MichaelCurrin/emoji-res...
Just git log and not changelog
I like to live in the moment, so:
Paweł no please, stop 🙈
I highly recommend aliasing it to
yolo
to further increase productivityAmazing
Use the force young jedi. haha
I have been enjoying the git-cz cli which has emoji support.
Aw hell no (etc).
Emojis are optional :D
I've tried using git-cz but it doesn't play nicely with precommit hooks :( I really like the idea and implementation tho!
Hey, really great article :) I have just finished a small bash scrip which should help to implement this idea.
I would be more than happy for review.
gist.github.com/MiroslavMikus/ec8b...
I started using semvar commits a few years ago and enjoy it.
Sometimes I make a ton of one line or one character changes in each commit and want to commit frequently at each stable state. So I wrote a VS Code extension to write the semvar label, the verb (create, move) and the path.
github.com/MichaelCurrin/auto-comm...
github.com/perezmotajavier/GitMess...
Do we have a convention when your commit includes both a feature and a fix. How do we do that.?