Git合并不使用默认合并信息,用默认信息打开编辑器 [英] Git merge doesn't use default merge message, opens editor with default message

查看:192
本文介绍了Git合并不使用默认合并信息,用默认信息打开编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何强制 git merge 使用默认的合并消息,而不是使用上述消息加载编辑器?



我没有编辑器列在 git config -l <​​/ code>中,所以我不确定它为什么会打开编辑器。

解决方案

在一些挖掘之后找到答案编辑:根据Mark的建议,这是最好的方法:

  git config --global core.mergeoptions --no-edit 


How can I force git merge to use the default merge message instead of loading my editor with said message?

I have no editor listed in git config -l, so I'm not sure why it opens an editor.

解决方案

Found the answer after some digging

EDIT: As per Mark's suggestion, this is the best way to do so:

git config --global core.mergeoptions --no-edit

这篇关于Git合并不使用默认合并信息,用默认信息打开编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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