본문 바로가기
Git/error

대용량 파일 올리기

by 개발자공부 2024. 7. 11.

상황 - 100MB 초과하는 파일을 올리려고 할 때

git은 100MB까지만 지원한다. 용량을 초과한 파일은 lfs를 통해 따로 관리해야 한다.

 


해석

 

Enumerating objects: 65, done.

객체 열거하기: 65, 완료.

Counting objects: 100% (65/65), done

개체 수 세기: 100%(65/65), 완료.

Delta compression using up to 20 threads

최대 20개의 스레드를 사용한 델타 압축

Compressing objects: 100% (55/55), done.

개체 압축 중입니다: 100%(55/55), 완료.

Writing objects: 100% (65/65), 633.61 MiB | 15.66 MiB/s, done.

객체 쓰기: 100%(65/65), 633.61 MiB | 15.66 MiB/s, 완료.

Total 65 (delta 5), reused 0 (delta 0), pack-reused 0 (from 0)

총 65(델타 5), 재사용 0(델타 0), 팩 재사용 0(0에서)

remote: Resolving deltas: 100% (5/5), done.

원격: 델타 해결 중: 100%(5/5), 완료.

remote: error: Trace: d39fe1fb675bb9d4d1e5380be56718607c1188592193f44daa1f6b549a8fea84

원격: 오류: Trace: d39fe1fb675bb9d4d1e5380be56718607c1188592193f44daa1f6b549a8fea84

remote: error: See https://gh.io/lfs for more information.

원격: 오류: 자세한 내용은 https://gh.io/lfs 을 참조하세요.

remote: error: File src/main/webapp/WEB-INF/lib/spring-tool-suite-4-4.22.1.RELEASE-e4.31.0-win32.win32.x86_64.self-extracting.jar is 629.15 MB; this exceeds GitHub's file size limit of 100.00 MB

원격: 오류: 파일 src/main/webapp/WEB-INF/lib/spring-tool-suite-4-4.22.1.RELEASE-e4.31.0-win32.win32.x86_64.self-extracting.jar의 크기가 629.15MB로 GitHub의 파일 크기 제한인 100.00MB를 초과합니다.

remote: error: GH001: Large files detected. You may want to try Git Large File Storage https://git-lfs.github.com.

 

Git Large File Storage

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git-lfs.com

원격: 오류: GH001: 대용량 파일이 감지되었습니다. Git 대용량 파일 저장소(https://git-lfs.github.com)를 사용해 보세요.

To https://github.com/chorok917/jsp_todo_mvc_v1.git

! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/chorok917/jsp_todo_mvc_v1.git'

! [원격 거부] 메인 -> 메인 (사전 수신 후크 거부)
오류: 일부 레퍼런스를 'https://github.com/chorok917/jsp_todo_mvc_v1.git'로 푸시하지 못했습니다.


Git Large File Storage 다운로드 받기

 

 

추가 프로그램

 

 

참고한 블로그
https://code-piggy.tistory.com/entry/GitHub-LFSLarge-File-Storage%EC%82%AC%EC%9A%A9%EB%B2%95-100MB%EC%9D%B4%EC%83%81%EC%9D%98-%ED%8C%8C%EC%9D%BC%EC%9D%84-%EC%97%85%EB%A1%9C%EB%93%9C-%ED%95%98%EA%B8%B0

 

GitHub - LFS(Large File Storage)사용법-100MB이상의 파일을 업로드 하기

01 Git LFS 설치 및 초기화 $git lfs install 02 LFS로 관리할 파일 지정 $ git lfs track * // 전체 파일 선택 $ git lfs track "*.txt" // txt확장자를 가진 파일 선택 $ git lfs track "example/file.txt" 특정 파일 선택 실행 예

code-piggy.tistory.com