Atom editor is not opening after giving git commit command to git bash


Whenever I give the command git commit git bash give me this output :
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.
I have configured atom in git bash using the command :
git config --global core.editor “atom --wait”

I’ve the same problem. Tried to insert the complete path to Atom like the 2nd SOF discussion linked but It didnt’t work. Please I need Help to solve the problem

https://stackoverflow.com/questions/58218086/git-commit-command-is-not-working-properly-with-atom-editor

https://stackoverflow.com/questions/49054885/how-to-fix-git-commit-with-atom-text-editor

could you check whether Atom even in your $PATH ?