Files
30-seconds-of-code/snippets/autocorrect.md
2021-04-13 21:10:59 +03:00

18 lines
345 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.
```shell
git config --global help.autocorrect 1
```
```shell
git config --global help.autocorrect 1
git sttaus # Runs `git status` instead
```