Skip to content

Commit f8d2278

Browse files
committed
auto correct typos
1 parent f4b8b94 commit f8d2278

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
* [Always rebase instead of merge on pull.](https://github.com/git-tips/tips#always-rebase-instead-of-merge-on-pull)
7979
* [List all the alias and configs.](https://github.com/git-tips/tips#list-all-the-alias-and-configs)
8080
* [Make git case sensitive.](https://github.com/git-tips/tips#make-git-case-sensitive)
81+
* [Auto correct typos.](https://github.com/git-tips/tips#auto-correct-typos)
8182

8283
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
8384
<!-- @doxie.inject end toc -->
@@ -539,5 +540,10 @@ git config --list
539540
git config --global core.ignorecase false
540541
```
541542

543+
## Auto correct typos.
544+
```sh
545+
git config --global help.autocorrect 1
546+
```
547+
542548
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
543549
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,7 @@
237237
}, {
238238
"title": "Make git case sensitive.",
239239
"tip": "git config --global core.ignorecase false"
240+
}, {
241+
"title": "Auto correct typos.",
242+
"tip": "git config --global help.autocorrect 1"
240243
}]

0 commit comments

Comments
 (0)