git的樱桃挑选-x默认(git cherry-pick -x default)

2019-07-30 02:14发布

在该男子页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.

...

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

Answer 1:

短做一个别名的git cherry-pick -x ,不,这是不可能的。

(有趣的事实:在默认情况下被更改提交abd6970 。)



文章来源: git cherry-pick -x default