git config --global help.autocorrect 17
This enables autocorrect in git and will forgive you for your minor mistakes (e.g.
git stats instead of
git status). The parameter you supply to
help.autocorrect determines how long the system should wait, in tenths of a second, before automatically applying the autocorrected command. In the command above, 17 means that git should wait 1.7 seconds before applying the autocorrected command.
However, bigger mistakes will be considered as missing commands, so typing something like
git testingit would result in
testingit is not a git command.