Loading

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

posted @ 2020-11-13 17:59  dylanchu  阅读(13896)  评论(0编辑  收藏  举报