我正在学习如何在 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的一个bug还是我遗漏了什么?
vi
? - Edward Thomsoni
来插入注释,然后按 esc 键,输入:wq
保存并退出。 - Scott Harwellvi
,难道不会被锁起来吗? - Ben Racicot