I am trying to enter the Git commit message in the editor which looks like Vi, but none of commands like :wq, Esc etc. are working. Whenever I try to merge the master branch, this window pops up:
Merge branch 'master' into awesomebar
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
--**-Mg: MERGE_MSG (fundamental)----All-------------------
And the cursor stays right at the beginning of the sentence Merge branch 'master' into awesomebar. Neither can I move the cursor, neither can I exit. Typing Esc gives the following commands:
Merge branch 'master' into awesomebar
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
--**-Mg: MERGE_MSG (fundamental)----All-------------------
ESC-
And once I type something, I can't even delete it. How do I deal with this?
git config --global core.editor vim