How to tie VSCode as external difftools to git inside the WSL?

I'm a pervert, I do that sort of thing is to impose the sites in the Windows 10 native by Windows WebStorm and git through the terminal WSL?

But I managed to tie VSCode as an external editor for git commit:
[core]
 editor = '/mnt/c/Users/const/AppData/Local/Programs/Microsoft VS Code/code.exe'

And it works! :)

I managed to get it to run as difftools:
[diff]
 tool = vscode
[difftool "vscode"]
 cmd = '/mnt/c/Users/const/AppData/Local/Programs/Microsoft VS Code/code.exe' --wait --diff $LOCAL $REMOTE


But when I run VSCode error:
C:\Users\const\WebstormProjects\test-git-02\README': Unable to read file 'c:\tmp\8jW60h_README' (Error: Unable to resolve non-existing file 'c:\tmp\8jW60h_README').

Where do these wild paths to the temporary files?..

If you remove $LOCAL, then files are opened, but without comparing the differences

Or not to torture the animal and work with git on Windows terminal type Cmder, which is able to pretend to be bash'eat?
April 19th 20 at 12:47

Find more questions by tags GitVisual Studio CodeWindows