Add configuration snippets
This commit is contained in:
17
snippets/set-text-editor.md
Normal file
17
snippets/set-text-editor.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user