Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Change the default Git editor

In the Git Bash terminal type one of the following lines of code to specify a new editor:

Nano

Code Block
languagebash
git config --global core.editor "nano"

...

Code Block
languagebash
git config --global core.editor "vim"

  
Notepad

Code Block
languagebash
git config --global core.editor "notepad"

  
Notepad++

Code Block
languagebash
git config --global core.editor "'C:\Program Files\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

  
Sublime Text

Code Block
languagebash
git config --global core.editor "'C:\Program Files\Sublime Text\sublime_text.exe' -multiInst -notabbar -nosession -noPlugin"

  
To verify that the default editor has been changed:

...