I am using git version 2.7.0.windows.1 on a windows pc, I used the following command:
$ nano README
which results me:
bash: nan
If anyone's still struggling with this, here's how I managed to get it working.
C:\Program Files\Git\bin
. I renamed it to nano.exe
.winpty nano
[core]
editor = winpty C:/Program Files/Git/bin/nano.exe
There might be a more elegant solution, but this works for me.