我在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,现在一切都很好。