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 Bash.
-
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.
- Install Sublime Text 3.
Open TerminalTerminalGit Bash.
-
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.
- Install
mate
Open TerminalTerminalGit Bash.
-
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 Bash.
-
Type this command:
git config --global core.editor "C:/Users/_USERNAME_/AppData/Local/atom/app-_VERSION_/atom.exe"
Using Sublime Text as your editor
You can set your default editor in Git to use Sublime Text 3.
- Install Sublime Text 3.
Open TerminalTerminalGit Bash.
-
Type this command:
git config --global core.editor "'c:/program files/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 Bash.
-
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 Bash.
-
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.
Open TerminalTerminalGit Bash.
-
Type this command:
git config --global core.editor "subl -n -w"