git merge 默认提交消息现在显示

问题描述 投票:0回答:1

我在 GitHub 中有两个存储库(假设存储库 A 和存储库 B)。假设两个存储库都有 main 和 dev 分支,当我在存储库 A 中从主分支执行

git merge dev
时,它会显示默认提交消息,例如
Merge branch 'dev'
,而在存储库 B 中,它不会显示此类默认提交消息。

我需要做什么才能在存储库 B 中配置以在合并期间显示默认提交消息?

我尝试找出 GitHub 中两个存储库之间的设置差异。

git github merge commit
1个回答
0
投票

经过更多调查,根本原因是快进。

我已使用

git config --global --add merge.ff false
禁用了它。

© www.soinside.com 2019 - 2024. All rights reserved.