git 提交命令 core.editor 等于 atom
git commit command with core.editor equals atom
原子编辑器有问题。我通过命令将原子设置为 core.editor:
git config --global core.editor atom
但是当我尝试通过
将更改提交到 git 中的存储库时
git commit
命令,我希望我选择的编辑器会打开并提示输入提交消息,但在打开之前 git 会抛出错误
Aborting commit due to empty commit message.
打开编辑器后,当我输入提交消息并退出编辑器时,没有提交发生,我知道我可以使用命令
git commit -m '<message>'
但是我想知道为什么会出现这个错误以及如何解决。
试试:
git config --global core.editor "atom --wait"
原子--wait标志等待window关闭再返回。
原子编辑器有问题。我通过命令将原子设置为 core.editor:
git config --global core.editor atom
但是当我尝试通过
将更改提交到 git 中的存储库时git commit
命令,我希望我选择的编辑器会打开并提示输入提交消息,但在打开之前 git 会抛出错误
Aborting commit due to empty commit message.
打开编辑器后,当我输入提交消息并退出编辑器时,没有提交发生,我知道我可以使用命令
git commit -m '<message>'
但是我想知道为什么会出现这个错误以及如何解决。
试试:
git config --global core.editor "atom --wait"
原子--wait标志等待window关闭再返回。