Skip to main content
We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.

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

Use a text editor to open and edit your files with Git.

Using Visual Studio Code as your editor

  1. Install Visual Studio Code (VS Code). For more information, see "Setting up VS Code" in the VS Code documentation.
  2. Open Terminal.
  3. Type this command:
    $ git config --global core.editor "code --wait"

Using Sublime Text as your editor

  1. Install Sublime Text. For more information, see "Installation" in the Sublime Text documentation.
  2. Open Terminal.
  3. Type this command:
    $ git config --global core.editor "subl -n -w"