请输入提交消息以解释为什么需要进行此合并,尤其是将更新的上游合并到主题分支时 [英] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

查看:18
本文介绍了请输入提交消息以解释为什么需要进行此合并,尤其是将更新的上游合并到主题分支时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Git.我从远程仓库中拉取并收到一条错误消息:

I am using Git. I did a pull from a remote repo and got an error message:

请输入提交消息以解释为什么需要进行此合并,
特别是如果它将更新的上游合并到主题分支中.

Please enter a commit message to explain why this merge is necessary,
especially if it merges an updated upstream into a topic branch.

我尝试输入消息并按 Enter 但没有任何反应.

I try to type a message and press Enter but nothing happens.

我如何告诉 Git/终端我已经完成了我的消息输入?

我在 OS X 上使用终端.

I am using Terminal on OS X.

推荐答案

这不是 Git 错误消息,而是编辑器,因为 git 使用您的默认编辑器.

It's not a Git error message, it's the editor as git uses your default editor.

解决这个问题:

  1. 按i"(i 表示插入)
  2. 写下您的合并消息
  3. 按esc"(转义)
  4. write ":wq"(写入并退出)
  5. 然后按回车

这篇关于请输入提交消息以解释为什么需要进行此合并,尤其是将更新的上游合并到主题分支时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆