![](/img/trans.png)
[英]pre-push hook is reporting that git-lfs is not in my path, but it is
[英]git-lfs .gitattributes file: strange unicode characters
我在 Windows 上使用 git。
我.gitattributes
添加到.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,現在一切正常。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.