I ssh from a windows machine to a unix one. When I do a git commit, git always launch Vi on the remote machine so that I could type the commit message.
Is it possible to change the default editor to notepad on the windows client machine ?
I ssh from a windows machine to a unix one. When I do a git commit, git always launch Vi on the remote machine so that I could type the commit message.
Is it possible to change the default editor to notepad on the windows client machine ?
It turned out that I have X-Win32 installed on my PC so I installed SublimeText 2 into the unix machine and adjusted the $PATH then ran git config --global core.editor sublimetext
Now
$ git commit
will launch SublimeText
also
$ sublimetext filename.txt
works as well