Auto-correct Git commands

January 18, 2025 ยท View on GitHub

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

git-auto-correct-demo