Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
599 views
in Technique[技术] by (71.8m points)

git - Git commit命令在Atom编辑器中无法正常工作(Git commit command is not working properly with atom editor)

When I give the command "$git commit" to git bash, then

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

$ 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.

this error is thrown by git.

(这个错误是由git抛出的。)

I have configured atom in git using this command :-

(我已经使用以下命令在git中配置了atom:)

$ git config --global core.editor "atom --wait"
  ask by Ft.Mohak translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If this problem appears, you have to :

(如果出现此问题,则必须:)

1 - Go to the Atom menu.

(1-转到“原子”菜单。)

2 - Select "Install Shell Commands".

(2-选择“安装Shell命令”。)

3 - Restart the terminal

(3-重新启动终端)

It's magic it works :D

(它是神奇的:D)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...