VSCode - Please enter a commit message...

Sometimes, if your local repo is out of sync with github you might do a pull or push and get a message like this:

# 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

To resolve this problem:

  1. Press i to go into 'insert' mode
  2. Type in a message to explain the merge
  3. Press the esc button
  4. Enter :wq
  5. Press Enter Then you should be able to push, or pull.