Git commit命令在Atom编辑器中无法正常使用

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

[当我向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.

此错误由git引发。我已经使用以下命令在git中配置了atom:-

$ git config --global core.editor "atom --wait"
git github atom-editor
1个回答
0
投票

1-转到Atom菜单。

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

3-重新启动终端

这很神奇,它有效:D

© www.soinside.com 2019 - 2024. All rights reserved.