Add autocorrect and status
This commit is contained in:
17
snippets/autocorrect.md
Normal file
17
snippets/autocorrect.md
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
title: Autocorrect git commands
|
||||
tags: configuration,intermediate
|
||||
---
|
||||
|
||||
Configures git to autocorrect mistyped commands.
|
||||
|
||||
- Use `git config --global help.autocorrect 1` to enable git's autocorrect.
|
||||
|
||||
```sh
|
||||
git config --global help.autocorrect 1
|
||||
```
|
||||
|
||||
```sh
|
||||
git config --global help.autocorrect 1
|
||||
git sttaus # Runs `git status` instead
|
||||
```
|
||||
Reference in New Issue
Block a user