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.
Written by Joel Day
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Command line
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#