git-lfs文件壞掉的問題 Encountered 2 file(s) that should have been pointers, but weren't
git更新后有時會提示沒更改的文件為更改狀態,嘗試checkout這些文件還是會報:
Encountered 2 file(s) that should have been pointers, but weren't......
和attributes文件中關于git-lfs的內容有關。
git rm .gitattributes
git reset --hard HEAD
https://www.v2ex.com/t/683636
https://tech-notes.maxmasnick.com/fixing-files-that-should-have-been-pointers-in-lfs-but-werent

浙公網安備 33010602011771號