Skip to content

TeachSolution/improve-git-commit-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

Improve our git commit message

You can commit your code like this:

Basic: git commit -m <message>
Detailed: git commit -m <title> -m <description>

Conventional Commit is a formatting convention that provides a set of rules to formulate a consistent commit message structure like so:

<type>[optional scope]: <description>
  
[optional body]
  
[optional footer(s)]

The commit type can include the following:

  • feat – a new feature is introduced with the changes
  • fix – a bug fix has occurred
  • chore – changes that do not relate to a fix or feature and don't modify src or test files (for example updating dependencies)
  • refactor – refactored code that neither fixes a bug nor adds a feature
  • docs – updates to documentation such as a the README or other markdown files
  • style – changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on.
  • test – including new or correcting previous tests
  • perf – performance improvements
  • ci – continuous integration related
  • build – changes that affect the build system or external dependencies
  • revert – reverts a previous commit

Example:

fix: fix foo to enable bar

This fixes the broken behavior of the component by doing xyz. 

BREAKING CHANGE
Before this fix foo wasn't enabled at all, behavior changes from <old> to <new>

Closes D2IQ-12345

Usage

You can use this comment convention on different kinds of framework or platform.

Node.js

https://commitlint.js.org/#/

About

🈷 Keep this rule in our git commit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published