Article version: Enterprise Server 2.13

This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2019-03-27. 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 Atom as your editor

You can set your default editor in Git to use Atom if you have installed the editor.

  1. Install Atom.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "atom --wait"

Using Sublime Text as your editor

You can set your default editor in Git to use Sublime Text 3.

  1. Install Sublime Text 3.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "subl -n -w"

Using TextMate as your editor

You can set your default editor in Git to use Textmate if you have installed the mate command.

  1. Install mate

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "mate -w"

Using Atom as your editor

You can set your default editor in Git to use Atom if you have installed the editor.

  1. Install Atom.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "atom --wait"

Using Sublime Text as your editor

You can set your default editor in Git to use Sublime Text 3.

  1. Install Sublime Text 3.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w"

Using Notepad++ as your editor

You can set your default editor in Git to use Notepad++ if you have installed the editor.

  1. Install Notepad++.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

Using Atom as your editor

You can set your default editor in Git to use Atom if you have installed the editor.

  1. Install Atom.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "atom --wait"

Using Sublime Text as your editor

You can set your default editor in Git to use Sublime Text 3.

  1. Install Sublime Text 3.

  2. Open TerminalTerminalGit Bashthe terminal.

  3. Type this command:

    $ git config --global core.editor "subl -n -w"

Ask a human

Can't find what you're looking for?

Contact us