From the course: Use Git Like a Pro by Pearson

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Write proper commit messages

Write proper commit messages

So we already talked about conventional commits. Let's see what they are. Conventional commits specification provides an easy set of rules for writing commit messages properly. So what it says is that if you have to write a commit message, you will define what is the type of the commit message, then you will define the scope and description. You also can define optional body and footer. So if you're using conventional commit, the type is the type of commit. So there are four or five types which you can use. Like for example, for a bug fix, it can be a fix. For a feature, the type can be feet. There are other types like core, if you are updating any library or there is some cleanup, then you have refactor if there are any refactors. For the test, you can mention it as test. For the CSS or any other style changes, you can mention it as styles. For the documents, you can specify docs. So this clearly tells that what is the type of commit message. In order to highlight some commits that…

Contents