set help.autocorrect in git 1

set help.autocorrect in git

git config --global help.autocorrect 20

Here is what the above code is Doing:
1. git config –global user.name “Your Name”
– This sets the author name in commits to be the name you specify.
2. git config –global user.email “youremail@domain.com”
– This sets the author email in commits to be the email you specify.
3. git config –global color.ui true
– This enables helpful colorization of command line output.
4. git config –global push.default simple
– This sets the default behavior of git push to push only the current branch to the remote of the same name.
5. git config –global core.editor “subl -n -w”
– This sets the default editor that will be used when Git needs you to type in a message.
6. git config –global help.autocorrect 20
– This will correct your command if you make a mistake.

Similar Posts