Share

Git error: Encountered X file(s) that should have been pointers, but weren’t

  • 2021년 05월 31일

.gitattributes에서 git-lfs 대상이지만 lfs 형태로 올라가지 않은 경우 발생하는 에러이다. 다음 명령어를 치면 lfs 대상을 다시 커밋한 후 푸시하면 해결된다.

Windows:

del .git\index && git reset
git commit -a -m "Migrate lfs"
git push origin master

Linux:

rm .git/index && git reset
git commit -a -m "Migrate lfs"
git push origin master
0
Would love your thoughts, please comment.x
()
x