Typos autocorrection

So, let's try to fix an annoying question about typing command: typos. I often find myself re-typing the same command two or more times; Git can help us with embedded autocorrection, but we first have to enable it. To enable it, you have to modify the help.autocorrection parameter, defining how many tenths of a second Git will wait before running the assumed command; so giving a help.autocorrect 10, Git will wait for a second:

[2] ~/grocery (master) 
$ git config --global help.autocorrect 10 
 
[3] ~/grocery (master) 
$ git chekcout 
WARNING: You called a Git command named 'chekcout', which does not exist. 
Continuing under the assumption that you meant 'checkout' 
in 1.0 seconds automatically... 

To abort the auto-correction, simply type Ctrl+C.

Now that we know about configuration files, you can note that the parameters we set by the command line are in this form: section.parameter_name. You can see the section names within [] if you look in the configuration file; for example, in C:Users<UserName>.gitconfig:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.171.121