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.
-
Install Atom.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Install Atom.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Install Notepad++.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Install Atom.
-
Open TerminalTerminalGit Bashthe terminal.
-
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.
-
Open TerminalTerminalGit Bashthe terminal.
-
Type this command:
$ git config --global core.editor "subl -n -w"