I know this question has been asked and answered more than once. But I tried at least ten different ways of doing it suggested by the answers and none of them work for me. I always get nano
as the editor when I do
git commit
(This would not be such a big problem if I could cut and paste into nano
, but it can't be done)
Just as an example, here are the lines in my .gitconfig
file, but please bear in mind I tried many variations of this:
[core]
editor = 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin