If you want to use Windows git (i.e. git.exe) but still want to use a WSL editor, you can configure git like this:
git.exe config --global core.editor "wsl.exe vim"
The presense of wsl.exe is due to git.exe not being able to run a linux program