Grok-Pedia

Conventional-Commits

Conventional Commits

Conventional Commits is a specification for adding human and machine-readable meaning to commit messages. This format enhances the readability and understanding of the history of changes within software projects, particularly those employing version control systems like Git. Here are some key aspects:

History and Context

The specification for Conventional Commits was developed to provide a standardized way to format commit messages. It was inspired by various commit message guidelines already in use, such as those from Angular, which had its own commit message convention for a long time. The Conventional Commits format was formalized to:

Structure

A commit message following the Conventional Commits specification has the following structure:

Example


fix(core): correct minor typos in code

- See the misspelling of 'environment'
- Fix typo in 'development'

BREAKING CHANGE: This commit introduces a breaking change in the API for the environment variable.

Benefits

Implementation

Various tools and libraries support or enforce Conventional Commits in different programming ecosystems:

External Links

Here are some related topics:

Recently Created Pages