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

Git commit命令在atom编辑器中无法正常工作,git,github,atom-editor,Git,Github,Atom Editor,当我向git bash发出命令“$git commit”时 这个错误是git抛出的。我已使用以下命令在git中配置atom:- $ git config --global core.editor "atom --wait" 如果出现此问题,您必须: 1-进入Atom菜单 2-选择“安装Shell命令” 3-重新启动终端 它的神奇之处在于:在git bash中做一个 git config core.editor "atom --add --wait" 然后你可以在git bash中做一个 g

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

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

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

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

1-进入Atom菜单

2-选择“安装Shell命令”

3-重新启动终端

它的神奇之处在于:在git bash中做一个

git config core.editor "atom --add --wait"
然后你可以在git bash中做一个

git commit

它将打开原子并等待。输入消息,保存并退出。

这里有一些工具可以解决这个问题

检查当前配置:

git config --list
检查状态:

git status
请参见下面哪个配置适用于atom文本编辑器:

git config --global core.editor "atom"
git config --global core.editor "atom --wait"
git config --global core.editor "atom -w -s"

确保在终端中运行“git commit”后打开的文件中留下一条消息。保存并完全退出编辑器。

如何进入atom菜单?是否需要安装软件包?Atom左上角的Atom菜单(您可以按alt键打开菜单栏)确定,但在哪里可以找到install shell命令?它在文件、编辑、查看、选择、查找、包或帮助中吗?请注意,“Install Shell Commands”并非在所有操作系统上都可用。我使用Windows 10。我使用此信息将其更改为VScode,如下所示:
git config--global core.editor“code”
git config --global core.editor "atom"
git config --global core.editor "atom --wait"
git config --global core.editor "atom -w -s"