当我在git commit消息中使用路径规范时,它们在系统绝对路径中被解析! E.g. git commit -m "/tools/controller subproject moved to submodule" 将导致 C:/Program Files/Git/tools/controller subproject moved to submodule 我如何关闭这个 '功能'? 我的git版
风格指南“如何写一个Git提交信息”部分5. Use the imperative mood in the subject line状态了Git本身使用祈使语气: 当务之急听起来有点粗鲁;这就是为什么我们不经常使用它。但它是完美的git提交主题行。其中一个原因是,git自己会在您代表您创建提交时使用命令。 例如,使用Git合并时读取默认的消息发布: Merge branch 'myfeature'
我们使用gerrit CI,它需要一个commit-msg挂钩,它向每个提交消息添加一个Change-ID。 但是,有时,当拉动我们得到一个递归的合并,这表明了在这样的引用日志: 767deb5 [email protected]{0}: pull: Merge made by the 'recursive' strategy.
发生这种情况时,我们不能推到我们的格里特服务器,并获得以下消息: