18 lines
339 B
Markdown
18 lines
339 B
Markdown
---
|
|
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
|
|
```
|