[[SOLVED] Atom在我输入“ Git commit”时没有打开。该如何解决?

问题描述 投票:0回答:1

当我键入git commit时应打开原子。但事实并非如此。

对于命令提示符下的配置,我键入:

config --global core.editor "atom --wait"

输入时:

git commit

它说:

hint: waiting for your editor to close the file .......

error: there was a problem with the editor  "atom --wait"

Please supply the message using either -m or -F option.
git atom-editor
1个回答
1
投票

正如解释here,应检查git config core.editor值。它可能指的是其中带有空格的路径,不带引号。

注册该编辑器路径时,请确保使用简单的引号:(并在所有已注册的命令表达式两边加上双引号。然后使用'/'代替路径分隔符'\'

git config core.editor "'C:/path/with spaces/xxx.exe' -<someoptions>"
© www.soinside.com 2019 - 2024. All rights reserved.