Files
30-seconds-of-code/snippets/set-text-editor.md
Isabelle Viktoria Maciohsek 38ccf0471e Add configuration snippets
2021-04-04 21:25:22 +03:00

18 lines
383 B
Markdown

---
title: Configure the git text editor
tags: configuration,intermediate
---
Configures the text editor used by git.
- Use `git config --global core.editor <editor-command>` to call `<editor-command>` as the git text editor.
```sh
git config --global core.editor <editor-command>
```
```sh
git config --global core.editor "code --wait"
# Sets VS Code as the git text editor
```