How to make Git smartly autocorrect commands itself 🤯

Опубликовано: 20 Май 2026
на канале: Amit Merchant
120
4

How many times did it happen to you that you mistyped a Git command and curse yourself every time you do it? I did. Many times. It’s annoying!

But we can change this behavior by setting a Git global config that can smartly “auto-correct” your mistyped commands! Sounds interesting?

Here's the global config that you need to set in order to make it work.

`git config --global help.autocorrect 10`

Here's the companion article for your reference: https://www.amitmerchant.com/smartly-...

Chapters

00:00 - Introduction
01:50 - The help.autocorrect Git config
05:13 - Unset the global config