퍼블리싱/git
github 대용량 파일 올리기
리어카주인
2023. 4. 6. 21:28
728x90
1. 오류발생
로컬에서 브런치 생성후 push를 실행하는데 오류가 발생하였다.
깃허브는 최대 100메가의 파일만 허용한다는 문구다.
2. 프로그램 설치
1번의 오류문구에 표시된 주소에 들어가 다운로드 후 설치를 진행한다.
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
3. 문제되는 파일 설정파일에 추가하기
내가 문제되는 파일은 mp4파일 이었기에
.gitattributes 파일을 생성후 해당 파일을 등록시킨다.
git lfs install
git lfs track "*.mp4"
git add .gitattributes
*무제한으로 업로드 가능한것은 아니다. 가능하면 대용량 파일은 따로 관리하자
728x90