请输入一条提交消息来解释为什么合并是必要的,特别是如果它将更新的上游合并到主题分支中 [英] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch
问题描述
我正在使用Git。我从远程仓库做了一个pull,并得到一个错误信息:
请输入一条提交消息来解释为什么这个合并是
是必要的,特别是如果它将更新的上游合并到主题
分支中。
我尝试输入消息并按 Enter 但没有任何反应。
我如何告诉Git /终端我输入了我的消息?
我在OS X上使用终端。
不是Git错误消息,它是编辑器,因为git使用您的默认编辑器。
解决此问题:
- 按i
- 写入您的合并信息
- 按下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:
- press "i"
- write your merge message
- press "esc"
- write ":wq"
- then press enter
这篇关于请输入一条提交消息来解释为什么合并是必要的,特别是如果它将更新的上游合并到主题分支中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!