Autocorrect git commands

Git, Configuration · Apr 13, 2021

Configures git to autocorrect mistyped commands.

  • Use git config --global help.autocorrect 1 to enable git's autocorrect.
git config --global help.autocorrect 1
git config --global help.autocorrect 1
git sttaus # Runs `git status` instead

Written by Angelos Chalaris

I'm Angelos Chalaris, a JavaScript software engineer, based in Athens, Greece. The best snippets from my coding adventures are published here to help others learn to code.

If you want to keep in touch, follow me on GitHub or Twitter.

More like this