小编Obe*_*yda的帖子

VSCode 作为适用于 Linux 的 Windows 子系统 (WSL) 上的 Git 编辑器

语境

系统信息(Windows)

OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.17134 N/A Build 17134
...
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 158 Stepping 10 GenuineIntel ~3696 Mhz
BIOS Version:              American Megatrends Inc. 2.20, 10/27/2017
Run Code Online (Sandbox Code Playgroud)

系统信息 (WSL)

OS: Debian
Kernel: x86_64 Linux 4.4.0-17134-Microsoft
Shell: zsh 5.3.1
CPU: Intel Core i7-8700K CPU @ 3.696GHz
RAM: 8041MiB / 16344MiB
Run Code Online (Sandbox Code Playgroud)

git

我的~/.gitconfig

[core]
    editor = code --wait
Run Code Online (Sandbox Code Playgroud)

问题:

当我运行时git commit,vscode 以 开头C:\mnt\$PathToRepo$\.git\COMMIT_EDITMSG …

git commit-message visual-studio-code windows-subsystem-for-linux

6
推荐指数
1
解决办法
7166
查看次数