Nest all content into snippets
This commit is contained in:
21
snippets/git/s/set-text-editor.md
Normal file
21
snippets/git/s/set-text-editor.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: Configure the git text editor
|
||||
type: snippet
|
||||
language: git
|
||||
tags: [configuration]
|
||||
cover: purple-sunset-beach
|
||||
dateModified: 2021-04-13T21:10:59+03:00
|
||||
---
|
||||
|
||||
Configures the text editor used by git.
|
||||
|
||||
- Use `git config --global core.editor <editor-command>` to call `<editor-command>` as the git text editor.
|
||||
|
||||
```shell
|
||||
git config --global core.editor <editor-command>
|
||||
```
|
||||
|
||||
```shell
|
||||
git config --global core.editor "code --wait"
|
||||
# Sets VS Code as the git text editor
|
||||
```
|
||||
Reference in New Issue
Block a user