Git commit 命令在 atom 编辑器中无法正常工作 [英] Git commit command is not working properly with atom editor

查看:57
本文介绍了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"

推荐答案

如果出现这个问题,你必须:

If this problem appears, you have to :

1 - 转到 Atom 菜单.

1 - Go to the Atom menu.

2 - 选择安装 Shell 命令".

2 - Select "Install Shell Commands".

3 - 重启终端

这很神奇:D

这篇关于Git commit 命令在 atom 编辑器中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆