git cherry-pick -x默认 [英] git cherry-pick -x default

查看:176
本文介绍了git cherry-pick -x默认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git cherry-pick 的手册页中:

  ... 

-x
当记录提交时,在原始提交消息中追加一行说(樱桃挑选
来自提交...),以表示
承担这一变化是从樱桃采摘。 ...

-r
它曾经是默认执行上述-x的命令,
和-r是禁用它的命令。现在默认不做-x,所以这个
选项是无操作的。

...

是否有配置设置在本地设置默认值回到 -x ,并允许 -r 禁用它?我找不到一个,但我可能错过了它。

解决方案

> git cherry-pick -x ,不,这是不可能的。



(有趣的事实:缺省值在commit abd6970 。)


In the man page for git cherry-pick:

...

-x
    When recording the commit, append a line that says "(cherry picked
    from commit …)" to the original commit message in order to indicate
    which commit this change was cherry-picked from. ...

-r
    It used to be that the command defaulted to do -x described above,
    and -r was to disable it. Now the default is not to do -x so this
    option is a no-op.

...

Is there a config setting to locally set the default back to -x, and allow -r to disable it? I couldn't find one, but I may have missed it.

解决方案

Short of making an alias for git cherry-pick -x, no, this is not possible.

(Fun fact: The default was changed in commit abd6970.)

这篇关于git cherry-pick -x默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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