Ive been getting a error when attempting to merge or pull a branch.
The error (this example from a pull request) is as follows:
MacBook-Pro-2:boilerplate Gene$ git pull origin test_branch
From https://github.com/me/boilerplate
* branch test_branch -> FETCH_HEAD
Merge branch 'test_branch' of https://github.com/me/boilerplate into test_branch
# 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.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"~/Sites/boilerplate/.git/MERGE_MSG" 7L, 302C
Thing is I definitely entered a commit message.
git commit -am "saving my work"
And this error doesnt give me any option to resolve it or even ctrl+c out. I basically have to close the terminal window and re-open it.
Thing is, once I re-open the terminal, the merge or pull request always seems to succeed, but is not committed. I just commit my changes and its fine. Its mostly just annoying (and a bit nerve wracking for more important merges).
Does anyone know what this may be and how to prevent it?