Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git commit command is not working properly with atom editor

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.

this error is thrown by git. I have configured atom in git using this command :-

$ git config --global core.editor "atom --wait"
like image 305
Ft.Mohak Avatar asked Oct 27 '22 07:10

Ft.Mohak


1 Answers

If this problem appears, you have to :

1 - Go to the Atom menu.

2 - Select "Install Shell Commands".

3 - Restart the terminal

It's magic it works :D

like image 104
Fizik26 Avatar answered Nov 16 '22 14:11

Fizik26