Giter Club home page Giter Club logo

styleguide-git-commit-message's Introduction

Git Commit Message

All Git Commit Messages MUST meet with this Text Format:

:emoji1: :emoji2: Subject
(Only One NewLine)
Message Body
(Only One NewLine)
Ref <###>

Rules

  1. Capitalize the Subject.
  2. Do not end the Subject line with a period.
  3. Message Subject SHOULD Begin with at-least One Emoji(see below for list of Suggested Emojis).
  4. Message Body SHOULD End with at-least One GitHub Issue/Phabricator Task ID Reference, Ex. Issue #27, Ref T27 or Ref T27, T56 or Fixes T8.
  5. Total Characters of the Subject Line MUST be Less than or Equal to 72 Chars Long.
  6. Wrap the Message body at 72 characters.
  7. Use Valid MarkDown format in Message Body.
  8. Use the Present Tense ("Add feature" not "Added feature").
  9. Use the Imperative Mood ("Move cursor to..." not "Moves cursor to...").
  10. Use the Message body to explain what and why vs. how.
  11. All WIP(Work In Progress) Commits MUST have the WIP Emoji(see below).

Notes

  • All WIP Commits Should be Avoided!.
  • Tasks with Commits in Fixes T### Format will be Automatically Closed as Resolved!.
  • There is a Space Character between Multiple Emojis!.
  • There is NO New-Line After the Task ID Reference Line.
  • Every Raw Emoji Text(:emoji:) is Counted as One Char!.
  • See ToDo Grammar StyleGuide for more Information on @XXX Comment Tags.

Suggested Emojis

Emoji Raw Emoji Code Description
๐ŸŽจ :art: when improving the format/structure of the code
๐ŸŽ :racehorse: when improving performance
๐Ÿ“š :books: when writing docs
๐Ÿ› :bug: when reporting a bug, with @FIXMEComment Tag
๐Ÿš‘ :ambulance: when fixing a bug
๐Ÿง :penguin: when fixing something on Linux
๐ŸŽ :apple: when fixing something on Mac OS
๐Ÿ :checkered_flag: when fixing something on Windows
๐Ÿ”ฅ :fire: when removing code or files, maybe with @CHANGED Comment Tag
โœ… :white_check_mark: when adding tests
๐Ÿ’š :green_heart: when fixing the CI build
๐Ÿ”’ :lock: when dealing with security
โฌ†๏ธ :arrow_up: when upgrading dependencies
โฌ‡๏ธ :arrow_down: when downgrading dependencies
๐Ÿ‘• :shirt: when removing linter/strict/deprecation warnings
๐Ÿ’„ :lipstick: when improving UI/Cosmetic
๐Ÿšง :construction: WIP(Work In Progress) Commits, maybe with @REVIEW Comment Tag
๐Ÿ’Ž :gem: New Release
๐Ÿ”– :bookmark: Version Tags
๐ŸŽ‰ :tada: Initial Commit
๐Ÿ”ˆ :speaker: when Adding Logging
๐Ÿ”‡ :mute: when Reducing Logging
โœจ :sparkles: when introducing New Features
โšก :zap: when introducing Backward-InCompatible Features, maybe with @CHANGED Comment Tag
๐Ÿ’ก :bulb: New Idea, with @IDEA Comment Tag
โ„๏ธ :snowflake: changing Configuration, Usually together with ๐Ÿง or ๐ŸŽ€ or ๐Ÿš€
๐ŸŽ€ :ribbon: Customer requested application Customization, with @HACK Comment Tag
๐Ÿš€ :rocket: Anything related to Deployments/DevOps

Ask to Be Creative!

Tools

There is Also a nifty CLI tool to aid in standardizing commit messages based on this document, thanks to @jakeasmith.

styleguide-git-commit-message's People

Contributors

slashsbin avatar

Stargazers

 avatar

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.