Autocorrect

This configuration is useful when you get tired of messages such as the following one just because you made a typo on the keyboard:

$ git statis
git: 'statis' is not a git command. See 'git --help'.
    
Did you mean this?
  status  

By setting the configuration to help.autocorrect, you can control how Git will behave when you accidentally send a typo to it. By default, the value is 0 and it means to list the possible options similar to the input (if statisis given, status will be shown). A negative value means to immediately execute the corresponding command. A positive value means to wait the given number of deciseconds (0.1 sec) before running the command (so there is an amount of time in which to cancel it). If several commands can ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.