I run git from the command line.
How does one save the commit message?
I mean what keys should I press to go past this screen:

You are inside vim. To save changes and quit, type:
<esc> :wq <enter>
That means:
:wqAn alternative that stdcall in the comments mentions is:
Z twice).esc in indeed to get out of insert modes, then you can execute commands like ZZ or :wqI believe the REAL answer to this question is an explanation as to how you configure what editor to use by default, if you are not comfortable with Vim.
This is how to configure Notepad for example, useful in Windows:
git config --global core.editor "notepad"
Gedit, more Linux friendly:
git config --global core.editor "gedit"
You can read the current configuration like this:
git config core.editor
core.editor. GitPad, or another wrapper, is required. github.com/github/GitPadgit config --global --unset-all core.editor. If there's some way to use Notepad with WSL, that would be perfect though.You can also commit with git commit -m "Message goes here" That's easier.
If you enter git commit but omit to enter a comment using the –m parameter, then Git will open up the default editor for you to edit your check-in note. By default that is Vim. Now you can do two things:
Alternative 1 – Exit Vim without entering any comment and repeat
A blank or unsaved comment will be counted as an aborted attempt to commit your changes and you can exit Vim by following these steps:
Press Esc to make sure you are not in edit mode (you can press Esc several times if you are uncertain)
Type :q! enter
(that is, colon, letter q, exclamation mark, enter), this tells Vim to discard any changes and exit)
Git will then respond:
Aborting commit due to empty commit message
and you are once again free to commit using:
git commit –m "your comment here"
Alternative 2 – Use Vim to write a comment
Follow the following steps to use Vim for writing your comments
:wq enterResponse from https://blogs.msdn.microsoft.com/kristol/2013/07/02/the-git-command-line-101-for-windows-users/