0

Auto-correct Git commands

 2 years ago
source link: https://bhupesh.gitbook.io/notes/git/autocorrect-git-commands
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Auto-correct Git commands

Posted on 24 Jun, 2021

help.autocorrect docs

Git offers correcting misspelled git commands within a timed interval

# run the correct command after 0.7 seconds
git config --global help.autocorrect 7

Or in your global .gitconfig

[help]
# default 0
# negative value to run correct command immediately
autocorrect = 7

Now test it by running git sttus

123370921-599de080-d59e-11eb-84fa-375c399fa61f.gif
git-auto-correct-demo

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK