我想设置git,这样它就可以将所有LF结尾更改为CRLF。我在repo的根文件夹中创建了一个.gitattributes文件:# Have git change every .groovy and .java file to crlf*.java eol=crlf当提交一个我知道有LF结尾的.java文件时,我希望它在签出到一个新的本地分支时会更改为CRLF。
warning: LF will be replaced by CRLF in bin/jarlist.cache.file will have its original line endings in your working directory.
warning: LF will be replaced by CRLFin gen/com/click4tab/pustakalpha/BuildConfig.java.file will have its original line end