-
remote: error: GH001: Large files detected. (github에 용량 큰 파일 push하기)Programing/기타 오류 해결 2023. 8. 3. 11:02반응형
push가 reject당했습니다.
이유를 보니 파일 용량이 너무 큰게 문제였습니다.
사전세팅: 해당 파일을 commit하기 전으로 이동
아래의 해결방법을 먼저 할 경우에는 소잃고 외양간 고치는 겪이 되어 여전히 push가 안 될 수 있습니다.
commit 이전으로 돌아가는 것이 쉬운 선택은 아니지만, 더 많은 변경사항이 발생하기 전에 이전으로 돌아가시기를 추천드립니다.
git log # commit 고유번호 확인 git reset --soft 고유번호 # hard: 고유번호 이후의 커밋이력을 모두 삭제 # soft: 고유번호 이후의 커밋이력을 모두 삭제, but, 변경 내용은 unstaged 상태 # mixed: 고유번호 이후의 커밋이력을 모두 삭제, but, 변경 내용은 staged 상태
해결방법: Git Large File Storage
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
1. 다운로드
다운받습니다 2. 설치
기본값대로 설치해도 무방합니다. 3. 설정
repository 위치로 가서 git bash를 열어서 아래의 명령을 입력합니다.
git lfs install git lfs track "*.원하는확장자" git add .gitattributes
이제 push하지 못했던 파일을 add, commit하면 push할 수 있습니다.
반응형'Programing > 기타 오류 해결' 카테고리의 다른 글
[onnxruntime] CUDAExecutionProvider가 적용되지 않을 때 (0) 2024.05.08 [LangChain] ValueError: The de-serialization relies loading a pickle file. (1) 2024.03.12 [구글 애드센스] 주소 인증 절차가 완료되지 않았기 때문에 더는 광고가 게재되지 않습니다. (0) 2023.06.04 ModuleNotFoundError: No module named 'distutils.cmd' (0) 2023.04.27 E: Package 'python' has no installation candidate (0) 2023.04.27