Как настроить редактор для работы с Git в Windows?

Основываясь на Darren's answer, чтобы использовать cygwin Notepad ++, вы можете просто windows-application сделать это (все в одной windows-application строке):

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

Очевидно, что часть git C:/Program Files/Notepad++/notepad++.exe должна быть путем к исполняемому cygwin файлу Notepad ++ в вашей windows системе. Например, это может windows-application быть C:/Program Files (x86)/Notepad++/notepad++.exe.

Мне это нравится.

В windows-applications статье How to set Notepad++ as the default Git editor for commits instead of Vim объясняются параметры cygwin команды.

windows

git

cygwin

editor

2022-11-11T23:22:44+00:00