小编Luc*_*elo的帖子

git commit无法打开编辑器

我有一个问题,每当我运行git commit时,都会显示出来:

error: cannot spawn subl: No such file or directory
error: unable to start editor 'subl'
Please supply the message using either -m or -F option.
Run Code Online (Sandbox Code Playgroud)

subl是崇高的别名。我在Win10上运行git Bash。
如果我只是运行' subl',它将打开编辑器而不会出现问题,但是使用git commit不会。这是我的git配置文件:

[core]
    editor = subl -w -n
Run Code Online (Sandbox Code Playgroud)

git github git-bash

5
推荐指数
1
解决办法
2055
查看次数

标签 统计

git ×1

git-bash ×1

github ×1