Files
30-seconds-of-code/snippets/git/s/autocorrect.md
2023-05-07 16:07:29 +03:00

23 lines
450 B
Markdown

---
title: Autocorrect git commands
type: snippet
language: git
tags: [configuration]
author: chalarangelo
cover: purple-flower-bunch
dateModified: 2021-04-13T21:10:59+03:00
---
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
```