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”