首页 > 解决方案 > 无法在 Windows 上使用 atom 在 git bash 中提交

问题描述

我正在尝试将 Atom 设置为 git bash 中的默认文本编辑器。

但是,我无法执行 git commit 命令。

我使用“git config --global core.editor”atom”来得到这个错误: 在此处输入图像描述

如果我使用" git config --global core.editor "atom --wait",则错误与powershell有关。 在此处输入图像描述

在任何一种情况下,Atom 都可以正常打开,但是在 Aborting 提交消息出现在 bash 中之前,我没有机会编写任何更改,就像这里一样。 在此处输入图像描述

我的环境路径变量设置正常(C:\Users\Maria\AppData\Local\atom\bin)

不确定还要检查什么?我在 Windows 7 上。有什么建议吗?

到目前为止,我通过使用 git commit -m "my change" 来解决这个问题——但我希望我可以使用 Atom。

标签: gitatom-editor

解决方案


推荐阅读