DEV Community


Posted on

How to easily avoid typos in commit messages ?

Do you sometimes write commit messages with embarrassing typos and push it to remote ?

Fear not! here's a full proof systematic way of writing a good commit message that can be brief as well as free of typo's.

Follow the following steps

Open VS-Code editor ever time you want to write a commit message.

$ git config --global core.editor "code --wait"

Install spell check extension

Link :

Start using git commit instead of git commit -m ....

So, now every time you wish to make a commit just use git commit which will open code editor where you can write a commit message and check and fix if there's any typo in your commit message


Discussion (0)