The Wayback Machine - https://web.archive.org./web/20210116121122/http://docs.github.com/en/github-ae@latest/github/using-git/associating-text-editors-with-git
GitHub AE is currently under limited release. Please contact our Sales Team to find out more.

Associating text editors with Git

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

In this article

Using Atom as your editor

  1. Install Atom. For more information, see "Installing Atom" in the Atom documentation.
  2. Open Terminal.
  3. Type this command:
    $ git config --global core.editor "atom --wait"

Using Visual Studio Code as your editor

  1. Install Visual Studio Code (VS Code). For more information, see "Setting up Visual Studio 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"

Using TextMate as your editor

  1. Install TextMate.
  2. Install TextMate's mate shell utility. For more information, see "mate and rmate" in the TextMate documentation.
  3. Open Terminal.
  4. Type this command:
    $ git config --global core.editor "mate -w"

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.