Conventional Commits to keep git history clean

disukharev

Dima Sukharev

Posted on March 14, 2023

Conventional Commits to keep git history clean

Conventional Commits is a specification for adding human and machine readable meaning to commit messages

Image description

Here are the types of Conventional Commits:

feat — adds a new feature.

feat: Add login page
Enter fullscreen mode Exit fullscreen mode

fix — fixes a bug.

fix(api): Return 404 for invalid endpoints
Enter fullscreen mode Exit fullscreen mode

docs — add/update a documentation, no code is touched

docs(readme): Update installation instructions
Enter fullscreen mode Exit fullscreen mode

chore — update deps

chore: Update dependencies
Enter fullscreen mode Exit fullscreen mode

Using Conventional Commits can help make your commit messages clearer and easier to understand. By using a consistent format, you can convey important information about the changes you made and help others understand the progress of your project.


i was tired of lame 1 line commits and wasting time switching context and recalling the changes I have made, so I open-sourced a library OpenCommit that makes conventional commits for you in just 2 keys oc typed in a terminal.

i know it's impressive, i'll probably impress the world more with other extraordinary inventions, you may follow my bird twitter

💖 💪 🙅 🚩
disukharev
Dima Sukharev

Posted on March 14, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related