Git commit 命令无法与atom 编辑器正常工作

Ft.*_*hak 5 git github atom-editor

当我向 git bash 发出命令“$git commit”时,然后

$ git commit
hint: Waiting for your editor to close the file... atom --wait: atom: command not found
error: There was a problem with the editor 'atom --wait'.
Please supply the message using either -m or -F option.
Run Code Online (Sandbox Code Playgroud)

这个错误是由 git 抛出的。我已经使用以下命令在 git 中配置了atom:-

$ git config --global core.editor "atom --wait"
Run Code Online (Sandbox Code Playgroud)

Fiz*_*k26 4

如果出现此问题,您必须:

1 -转至 Atom 菜单。

2 -选择“安装 Shell 命令”。

3 -重新启动终端

这很神奇,它起作用了:D