This version of GitHub Enterprise was discontinued on 2023-03-15. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.
Associating text editors with Git
In this article
Use a text editor to open and edit your files with Git.
Using Visual Studio Code as your editor
- Install Visual Studio Code (VS Code). For more information, see "Setting up VS Code" in the VS Code documentation.
- Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "code --wait"
- Install Visual Studio Code (VS Code). For more information, see "Setting up VS Code" in the VS Code documentation.
- Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "code --wait"
- Install Visual Studio Code (VS Code). For more information, see "Setting up VS Code" in the VS Code documentation.
- Open TerminalTerminalGit Bash.
- 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 TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "subl -n -w"
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"
- Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
- Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "subl -n -w"
Using TextMate as your editor
- Install TextMate.
- Install TextMate's
mateshell utility. For more information, see "mateandrmate" in the TextMate documentation. - Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "mate -w"
Using Notepad++ as your editor
- Install Notepad++ from https://notepad-plus-plus.org/. For more information, see "Getting started" in the Notepad++ documentation.
- Open TerminalTerminalGit Bash.
- Type this command:
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
