文章版本: Enterprise Server 2.17
关联文本编辑器与 Git
使用文本编辑器打开文件并通过 Git 编辑。
使用 Atom 作为编辑器
- Install Atom. For more information, see "Installing Atom" in the Atom documentation.
- 打开 Terminal(终端) 。
- 输入此命令:
$ 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.
- 打开 Terminal(终端) 。
- 输入此命令:
$ git config --global core.editor "code --wait"
使用 Sublime Text 作为编辑器
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- 打开 Terminal(终端) 。
- 输入此命令:
$ git config --global core.editor "subl -n -w"
使用 TextMate 作为编辑器
- Install TextMate.
- Install TextMate's
mate
shell utility. For more information, see "mate and rmate" in the TextMate documentation. - 打开 Terminal(终端) 。
- 输入此命令:
$ git config --global core.editor "mate -w"