请输入一条提交消息来解释为什么合并是必要的,特别是如果它将更新的上游合并到主题分支中 [英] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

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

问题描述

我正在使用Git。我从远程仓库做了一个pull,并得到一个错误信息:


请输入一条提交消息来解释为什么这个合并是
是必要的,特别是如果它将更新的上游合并到主题
分支中。

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

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



我在OS X上使用终端。

解决方案

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



解决此问题:


  1. 按i

  2. 写入您的合并信息

  3. 按下esc li>,然后按回车键


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."

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

How do I tell Git/terminal I am done typing in my message?

I am using terminal on OS X.

解决方案

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

To solve this:

  1. press "i"
  2. write your merge message
  3. press "esc"
  4. write ":wq"
  5. then press enter

这篇关于请输入一条提交消息来解释为什么合并是必要的,特别是如果它将更新的上游合并到主题分支中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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