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

Last updated