niels segers
cover

Navigating the wild west of commit conventions

Oct 24, 2024

In the vast landscape of software development, commit messages serve as the breadcrumbs that guide us through the history of our code. They're crucial for understanding changes, tracking progress, and maintaining a clean, comprehensible project history. However, in this open world of development, we face a challenge: the multitude of commit conventions.

From Angular-style commits to Conventional Commits, from Gitmoji's emoji-prefixed messages to custom team standards, the variety of commit conventions can be overwhelming. This diversity, while offering flexibility, often leads to inconsistency within projects and across teams. It's not uncommon to see a repository with a mishmash of commit styles, making it difficult to parse the project's history at a glance.

Recognizing this challenge, I developed cmt, a tool designed to ensure consistency in commit messages within a repository. cmt takes a gitmoji-cli inspired approach by using prompts to guide developers through the commit process, ensuring that each commit adheres to the project's chosen convention.

Read more about it here.