xcdhcq
Last Updated: February 25, 2016
·
1.342K
· dayjo

Make Git more forgiving on miss-spellings

Sometimes ... actually quite a lot of the time I try to type my Git commands faster than my fingers will let me. This ends in things like git staus, git pul or git checkut <branch-name>.

It is possible to create aliases for these commands with common miss-spellings, however this isn't necessarily the best way for you.

Alternatively you can use Git's built in autocorrect and set it up to automatically run the correct command like so;

git config --global help.autocorrect 20

The number (20) represents 10ths of seconds (god knows why, maybe just because it's Git), so this will run the correct command after 2.0 seconds.