Git commit命令在Atom编辑器中无法正常工作 [英] Git commit command is not working properly with atom editor
本文介绍了Git commit命令在Atom编辑器中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我向git bash输入命令"$ git commit"时,
When I give the command "$git commit" to git bash, then
$ 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:-
this error is thrown by git. I have configured atom in git using this command :-
$ git config --global core.editor "atom --wait"
推荐答案
这里有一些工具可以解决这个问题.
Here are some tools to figure this out.
检查当前配置:
git config --list
检查状态:
git status
查看以下哪种配置适用于原子文本编辑器:
See which configuration below works for the atom text editor:
git config --global core.editor "atom"
git config --global core.editor "atom --wait"
git config --global core.editor "atom -w -s"
确保在终端中运行"git commit"后打开的文件中保留一条消息.保存并完全退出编辑器.
Be sure to leave a message in the file that opens after running "git commit" in terminal. Save and completely exit the editor.
这篇关于Git commit命令在Atom编辑器中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文