Skip to content
Rezha Julio
Go back

Add Autocorrect to Git

1 min read

If you want git to correct typos you can set help.autocorrect:

Terminal window
$ git config --global help.autocorrect 30

You set help.autocorrect to an integer representing the time you have to change your mind before git executes the command (1 = 0.1 seconds).

For example:

Terminal window
$ git comit
WARNING: You called a git command
named 'comit', which does not exist.
Continuing under the assumption that
you meant 'commit'
in 3 seconds automatically...

Related Posts


Previous Post
Altering format string output by changing a format specifier's argument_index
Next Post
Future of Interface in Java 9