As a newbie git user, when I try to commit my work with
git commit -a -v
and I enter a commit message in my editor, I close the file, and g
To begin with, make sure your git is correctly configured to open some kind of editor prompt (visual studio / sublime / notepad++ / atom etc) in order to proceed further.
.gitconfig file and found out my editor was missing -w parametergit config --global core.editor "code -w" command and rechecked my .gitconfig file, noticed the -w was added there correctly.Hope this helps for some other newbie's like myself.