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

could you check whether Atom even in your $PATH ?