본문 바로가기
Q&A2026년 7월 23일2분 읽기

git push 하니까 100MB 넘는 파일 때문에 거부당하는데 LFS로 옮기면 되나요

g
gitlfs_dohoon
조회 634댓글 3

학습용 모델 가중치 파일(.pt, 한 180MB)을 실수로 커밋했다가 push 하니 원격(github)에서 거부됩니다. GH001 exceeds file size limit 어쩌고 하면서요.

이미 커밋은 로컬에만 있고 push는 안 된 상태입니다. git lfs 를 설치하고 track 하면 될 것 같아서 git lfs install 하고 git lfs track "*.pt" 한 다음 다시 커밋했는데 여전히 같은 에러로 push가 막힙니다.

remote: error: File model/last.pt is 183.20 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected.
error: failed to push some refs to 'github.com:me/proj.git'

track은 분명히 했는데 왜 아직도 일반 파일로 인식되는 걸까요? .gitattributes 에도 *.pt filter=lfs 라고 들어가 있는 걸 확인했습니다.

댓글 0

아직 댓글이 없습니다.
Ctrl+Enter로 등록