【发布时间】:2012-12-12 08:07:10
【问题描述】:
我正在mac(命令行)上学习github,每当我这样做git pull origin master我都会得到这个
# 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.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
".git/MERGE_MSG" 7L, 293C
终端似乎被锁定并且不允许我立即输入任何内容,然后当它最终允许我输入文本时,它似乎无法识别 git 命令。
这是 git 中的错误还是我遗漏了什么?
【问题讨论】:
-
真的被锁住了还是你只是不熟悉
vi? -
我不能确切地告诉你为什么,但是 git 希望你输入一个提交信息,而你很可能在文本编辑器 vim 中。
-
啊,我明白了,是的,我不熟悉 vim。如何输入并保存评论然后继续?
-
输入
i插入评论,然后按 esc 并输入:wq -
如果你不熟悉
vi你不是被锁了吗?