The Git editor uses Vim by default. You can check this answer for details on how to exit Vim (press the
i
key to insert text) and this answer for changing the editor.