- gitHub의 용량 제한은 100M. 초과시 에러가 발생하며 Push가 되지 않음.

 

  • 해결방법

   1. bfg 다운로드
      링크 : https://rtyley.github.io/bfg-repo-cleaner/

 

BFG Repo-Cleaner by rtyley

$ bfg --strip-blobs-bigger-than 100M --replace-text banned.txt repo.git an alternative to git-filter-branch The BFG is a simpler, faster alternative to git-filter-branch for cleansing bad data out of your Git repository history: Removing Crazy Big Files Re

rtyley.github.io

2. 레파지토리 폴더에 bfg 파일 복사

3. git Bash 실행

4. [ java -jar bfg-1.14.0.jar --strip-blobs-bigger-than 100M ] 명령어 입력

4-1. 실패시 출력문구

4-2. [ git repack && git gc ] 명령어 입력

4-3. 위와같은 메세지가 출력되엇다면 다시 [ java -jar bfg-1.14.0.jar --strip-blobs-bigger-than 100M ] 명령어 입력

 

5. 위와 같은 메세지가 출력되엇다면. 다시 Push 하기!

'Git' 카테고리의 다른 글

[Sourcetree] 여러 계정 이용시 인증 에러 해결 방법  (0) 2024.04.24
Posted by 샌츠
,