Associating text editors with Git Use a text editor to open and edit your files with Git.
Install Visual Studio Code  (VS Code). For more information, see "Setting up VS Code " in the VS Code documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "code --wait" 
 
Install Sublime Text . For more information, see "Installation " in the Sublime Text documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "subl -n -w" 
 
Install TextMate . 
Install TextMate's mate shell utility. For more information, see "mate and rmate 
Open Terminal Terminal Git Bash . 
Type this command:
  $ git config --global core.editor "mate -w"   
Install Visual Studio Code  (VS Code). For more information, see "Setting up VS Code " in the VS Code documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "code --wait" 
 
Install Sublime Text . For more information, see "Installation " in the Sublime Text documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "'C:/Program Files (x86)/sublime text 3/subl.exe' -w" 
 
Install Notepad++ from https://notepad-plus-plus.org/ . For more information, see "Getting started " in the Notepad++ documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
  $ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"   
Install Visual Studio Code  (VS Code). For more information, see "Setting up VS Code " in the VS Code documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "code --wait" 
 
Install Sublime Text . For more information, see "Installation " in the Sublime Text documentation. 
Open Terminal Terminal Git Bash . 
Type this command:
$ git config --global core.editor "subl -n -w"