Wenn man msysgit unter Windows installiert, wird als Default-Editor vi installiert.
Will man stattdessen einen anderen Editor, z.B. Notepad++ verwenden, muss man Kommando in der Git Bash aufrufen:
$ git config --global core.editor "'C:\Program Files (x86)\Notepad++\Notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Ruft man danach z.B.
git commit -a
auf, wird dann Notepad++ gestartet, um die Commit-Message zu bearbeiten:

Nach dem Schließen von Notepad++ wird der Commit entsprechend ausgeführt:

Update:
Verwendet man Cygwin, muß der Aufruf wie folgt lauten:
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/Notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5