Git pull - 无法提交 merge 消息

标签 git git-merge git-pull commit-message

<分区>

Possible Duplicate: github locks up mac terminal when using pull command

我在 mac 上通过终端使用 Git。 我最近在尝试执行 git pull 时遇到了一个恼人的问题。 执行 git pull 后,我收到以下错误消息:

Merge ssh://example.com/repository.git
# 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 的新手,所以这可能是我犯的一个简单错误。

我读了here对于某些人来说,文本编辑器会在此时打开。这当然不是我的情况。它还在那里声明我可以使用 --no-edit 标志在没有消息的情况下进行 merge ,但即使这样在我这边似乎也不起作用。

我现在有点无能为力,卡住了,无法将任何更改推送到我的服务器。

最佳答案

这是vim,是一个普通的unix编辑器

按:

:wq

就是这样。 (w=写 q=退出)

关于Git pull - 无法提交 merge 消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14095867/

相关文章:

Git - 如何从单个项目的全局 .gitignore 中删除排除模式

python - 是否有任何交叉引用 Python 源代码的 git web 网关

git - 如何将 Git LFS 文件的旧版本打印到标准输出(Git show/git cat-file for LFS)?

git - 源代码树 GIT - 如何取消 merge

Git 如何在没有 merge 提交的情况下进行 merge ,但保留哈希值(在 git 日志中具有直线图形)

git - 如何从 Git/Github 图表中删除旧提交?

git - .gitattributes merge 驱动程序未使用

Git命令解释: push, pull、fork、merge

git - 仅解决某些文件的 merge 冲突并提交其他团队的分支以解决他们的冲突

git - 如何强制 "git pull"覆盖本地文件?