Add configuration snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-04-04 21:25:22 +03:00
parent 2c0ba554cd
commit 38ccf0471e
4 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
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
```