Reputation: 34499
Sometimes, when I make a typo in a Git command, Git will offer suggestions for the command it thinks I was trying to type. For example:
$ git statu
git: 'statu' is not a git command. See 'git --help'.
Did you mean one of these?
status
stage
stash
I find this functionality to be very slow; sometimes, I will have to wait a few seconds before the Git process exits. Is there any way to turn off this command suggestion functionality? Thanks.
Upvotes: 1
Views: 281
Reputation: 1323753
Try the git config help.autoCorrect
setting:
git config help.autoCorrect -1
or
git config help.autoCorrect 0
That is in decisecond, but if the value of this option is negative, the corrected command will be executed immediately.
If the value is 0 - the command will be just shown but not executed. This is the default.
Upvotes: 1