한 번만 더 해보자

[git] error: failed to push some refs to 'https://github.com/git_id/AI.git' 본문

Linux

[git] error: failed to push some refs to 'https://github.com/git_id/AI.git'

정 하임 2024. 1. 4. 21:19

상황

깃을 올리려는데 다음과 같은 에러가 발생함

 

 

에러코드

@DESKTOP-RDKB7 MINGW64 /c/DEV/python/AI (heim)
$ git push origin main
Enumerating objects: 788, done.
Counting objects: 100% (788/788), done.
Delta compression using up to 12 threads
Compressing objects: 100% (776/776), done.
Writing objects: 100% (787/787), 525.54 MiB | 11.85 MiB/s, done.
Total 787 (delta 175), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (175/175), done.
remote: warning: File yolov8/weight/yolov8l.pt is 83.70 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace: 1d59c2e0e902afb6462700f60f6204e5a767435e5c8d3850dbbb240215c3a484
remote: error: See <https://gh.io/lfs> for more information.
remote: error: File yolov8/weight/yolov8x-seg.pt is 137.40 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: File yolov8/weight/yolov8x.pt is 130.53 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - <https://git-lfs.github.com>.
To <https://github.com/git_id/AI.git>
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to '<https://github.com/git_id/AI.git>'

 

 

에러 설명

this exceeds GitHub's file size limit of 100.00 MB

깃 파일 사이즈 한계인 100MB를 넘겼다

 

 

해결법

  • this exceeds GitHub's file size limit of 100.00 MB
  • 파일 용량이 너무 커서 안 올라가는 거였다 큰 파일을 제외하고 올리니 정상적으로 올라갔다
반응형