diff --git a/README.md b/README.md index 9b7e889..d2b2f7e 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ * [Always rebase instead of merge on pull.](https://github.com/git-tips/tips#always-rebase-instead-of-merge-on-pull) * [List all the alias and configs.](https://github.com/git-tips/tips#list-all-the-alias-and-configs) * [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive) +* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos) @@ -539,5 +540,10 @@ git config --list git config --global core.ignorecase false ``` +## Auto correct typos. +```sh +git config --global help.autocorrect 1 +``` + diff --git a/tips.json b/tips.json index 8cbd5f8..cf48f59 100644 --- a/tips.json +++ b/tips.json @@ -237,4 +237,7 @@ }, { "title": "Make git case sensitive.", "tip": "git config --global core.ignorecase false" +}, { + "title": "Auto correct typos.", + "tip": "git config --global help.autocorrect 1" }]