尝试合并或拉出分支时出现错误。合并/拉动时出现Git错误
的误差(从拉入请求这个例子中)如下:
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
事情是我绝对输入提交消息。
git commit -am "saving my work"
而这个错误犯规给我任何选项来解决它,甚至CTRL + C了。我基本上必须关闭终端窗口并重新打开它。
事情是,一旦我重新打开终端,合并或拉请求似乎总是成功,但没有承诺。我只是承诺我的改变和罚款。它大多只是令人讨厌的(并且更重要的合并有点神经不安)。
有谁知道这可能是什么,以及如何预防它?
你知道如何使用'vi'吗? – PetSerAl
可能重复[如何定制git的合并提交信息?](http://stackoverflow.com/questions/3148863/how-can-i-customize-gits-merge-commit-message) – chwarr
我不知道'vi' – yevg