我正在 Windows 机器上的一个项目中工作,该项目的行尾设置为 LF。
命令后 jgitflow:release-start
运行时,poms 更新为新版本,但 poms 中的行尾也更改为 CRLF。
顺便提一下,有一行*.xml text eol=lf
在 .gitattributes 中。
有谁知道如何防止这种情况?
最佳答案
在 jGit 流插件 here 中有一张改进行尾处理的票
目前,jgit flow 根据 的全局 GIT 配置选择要使用的 EOL。 core.eol .在我的情况下添加 core.eol=lf
解决了这个问题。
关于maven jgitflow release-start 目标将行尾更改为 CRLF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29119721/