Tags: , | Posted by AlexanderZeitler on 7/13/2010 8:18 PM | Comments (0)

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:

Git Commit Message In Notepad++

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

Erfolgter Git Commit

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"
DotNetKicks-DE Image

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Comments are closed