You’re meant to put the commit message in this text file, then save and quit.
You can change the default text editor that git uses with this command:
git config --global core.editor "nano"
You have to change nano to whatever command would normally open your text editor.