git-lfs .gitattributes file:奇怪的 unicode 字符



我在Windows上使用git。

我在.gitattributes文件中添加了以下行:

"*.msi" filter=lfs diff=lfs merge=lfs -text

然后我和git lfs track一起检查,但没有任何显示。

然后我尝试添加git lfs track "*.msi".现在它在使用git lfs track时显示,但 .gitattributes 文件如下所示:

਍∀⨀⸀洀猀椀∀ 昀椀氀琀攀爀㴀氀昀猀 搀椀昀昀㴀氀昀猀 洀攀爀最攀㴀氀昀猀 ⴀ琀攀砀琀ഀ਍⸪獭⁩楦瑬牥氽獦搠晩㵦晬⁳敭杲㵥晬⁳琭硥൴

这是怎么回事?我想要一个可读的工作.gitattributes文件。

我的 .gitattributes 文件不知何故是 UTF-16。将其更改为UTF-8,现在一切都很好。

最新更新