Article version: Enterprise Server 2.17
Associating text editors with Git
Use a text editor to open and edit your files with Git.
Using Atom as your editor
- Install Atom. For more information, see "Installing Atom" in the Atom documentation.
- Open Terminal .
- Type this command:
$ git config --global core.editor "atom --wait"
Using Visual Studio Code as your editor
- Install Visual Studio Code (VS Code). For more information, see "Setting up Visual Studio Code" in the VS Code documentation.
- Open Terminal .
- Type this command:
$ git config --global core.editor "code --wait"
Using Sublime Text as your editor
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- Open Terminal .
- Type this command:
$ git config --global core.editor "subl -n -w"
Using TextMate as your editor
- Install TextMate.
- Install TextMate's
mate
shell utility. For more information, see "mate and rmate" in the TextMate documentation. - Open Terminal .
- Type this command:
$ git config --global core.editor "mate -w"