DEV Community

Jay
Jay

Posted on

1

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 : https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker

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

example

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay