Auto-correct Git commands
Posted on 24 Jun, 2021
​help.autocorrect docs
Git offers correcting misspelled git commands within a timed interval
1
# run the correct command after 0.7 seconds
2
git config --global help.autocorrect 7
Copied!
Or in your global .gitconfig
1
[help]
2
# default 0
3
# negative value to run correct command immediately
4
autocorrect = 7
Copied!
Now test it by running git sttus
git-auto-correct-demo
Last modified 3mo ago
Copy link