Giter Club home page Giter Club logo

git3moji's Introduction

git3moji v1.0.0

[git-three-moh-jee] is a simple three-letter (or less) emoji standard for expressive commit messages.

SummaryIntroductionListFAQAbout


Summary

Prepend one of the five emojis to describe the intention of your git commit.

  • :zap: ⚡️ – Features and primary concerns
  • :bug: 🐛 – Bugs and fixes
  • :tv:  📺 – CI, tooling, and configuration
  • :cop: 👮 – Tests and linting
  • :abc: 🔤 – Documentation

Introduction

Many teams and projects have very precise rules over how the git commit messages can be formatted. They benefit from messages that are easy to follow when looking through the project history. Usually, the message might include type, scope, subject, and other. To describe the type of a commit git3moji suggests using certain emojis.

This is certainly not a new idea. There are many long creative lists of recommended commit emojis. The problem is that “long” and “creative” isn’t good for the real world. Without compliance to some sort of standard with strict limits, emojis are useless in bigger teams. This project aims at providing such a lightweight set.

Features

  • At first sight, you can recognise the purpose of a commit.
  • Three-letter (or less) codes are easy to remember and quick to write. No more 📈 (:chart_with_upwards_trend:). This is where the 3 in the name comes from.
  • A small set of emojis prevents the time-consuming search for “the best fit”. Every team member can learn them by heart or peak at a credit card-sized cheat sheet.

How to use

The selected emoji must be at the very beginning of the commit message.

Use the shorthand form with colons (:) surrounding the name. Do not include the emoji symbol itself as it could break in terminals and other legacy environments.

It is recommended to separate the emoji and the text description with a single space.

Example:

$ git commit -m ":zap: Add users endpoint, fixes #27"

Which would be displayed as:

1b74135 ⚡️ Add users endpoint, fixes #27

List

Emoji Code Description
⚡️ :zap: Features and primary concerns
🐛 :bug: Bugs and fixes
📺 :tv: CI, tooling, and configuration
👮 :cop: Tests and linting
🔤 :abc: Documentation

Get the list in the form of JSON.

FAQ

Do we need a ‘specification’ for 5 emojis?

This document aims to be a reference point for teams and individuals who would like to categorise their commits by their intention. It should also serve as a starting place for developers contributing to an adhering project.

Giving a bit of formal style should simplify the adoption and speed up the learning process. A shared specification has a higher chance of describing edge cases.

The actual number of emojis in the spec is somewhat irrelevant—fewer being a feature, in this case, the same way as SemVer is not just ‘3 numbers’.

What if no emoji on the list suits my need? What if more emojis describe the commit?

As the number of emojis to choose from is deliberately low, this scenario is probable. Please think again what is the main change in your commit, which files are mostly affected. Also, consider splitting the commit into more smaller commits. If you still feel unsure, :zap: is likely one with the most general use.

Introducing a new emoji is tempting. Please restrain to do so and keep the system simple and coherent. If you truly believe there is a use case for extending the list, please start a discussion.

Can I have more emojis in the commit message?

Of course! The remainder of the commit message is beyond the scope of this standard. You might want to introduce team-specific rules about it. Adding more meaningful emojis can be beneficial.

You should be careful and not overwhelm readers with too many emojis. That would be confusing, which is exactly what we want to avoid. Similarly, emojis from this specification should not appear outside the beginning of the message.

In any case, it is recommended to include a space (or another delimiter) after the emoji from the list. This helps visually distinguish its role.

What git hosts support emojis?

GitHub, BitBucket, and GitLab display shortcodes in commit messages as emojis.

Is there a readme badge?

Sure. If you use git3moji in your project, you can include this (or any other) badge in your readme to point people to this specification for more information.

[![git3moji](https://img.shields.io/badge/git3moji-%E2%9A%A1%EF%B8%8F%F0%9F%90%9B%F0%9F%93%BA%F0%9F%91%AE%F0%9F%94%A4-fffad8.svg?style=flat-square)](https://robinpokorny.github.io/git3moji/)

Something missing? Ask your question

About

The git3moji specification is authored by Robin Pokorny. It adheres to Semantic Versioning.

If you would like to leave feedback, please open an issue.

Attribution

This project was inspired by gitmoji, a project by Carlos Cuesta, which felt overwhelming.

License

To the extent possible under law, authors have waived all copyright and related or neighboring rights to git3moji.

Emoji character artwork and copyright belong to their respective creators.

git3moji's People

Contributors

robinpokorny avatar

Stargazers

Clayton Kehoe avatar Jan Andrle avatar Elizabeth Alfaro-Espinoza avatar  avatar  avatar Micah Elliott avatar Melanys avatar Kevin Peters avatar Yo Lulkin avatar Neni avatar Felipe Silva avatar Ales Klasek avatar Kirill Bubochkin avatar GAURAV avatar Gabriel Falcão avatar Sam Richards avatar Jason Evans avatar Josemar Luedke avatar Martin Šťovíček avatar Emory Petermann avatar  avatar Daniel Srb avatar Mark Sanghoon Kim avatar David Adam Coffey avatar Miroslav Čillík avatar Pavel avatar Victor avatar Scott Spence avatar Jakub Matějka avatar gglnx avatar Eduardo Sampaio avatar sasha gudulin avatar

Watchers

 avatar James Cloos avatar  avatar

git3moji's Issues

Add Usage section

Add a section on the site with recommended usage.

git commit -m ":zap: Add users endpoint, fixes #27"
1b74135 ⚡️ Add users endpoint, fixes #27

Maybe add more examples.

Add Readme

Add a readme file with information for visitors that come to the GitHub page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.