준비물 : git bash / github저장소 미리 만들어 놓기
이동할 위치에서 git bash 열고
git lfs install
명령어 입력
https://rtyley.github.io/bfg-repo-cleaner/#requirements
위와 같은 곳에서 downloadable.jar 클릭해서 다운받고, 경로를 기억해두기
git clone --mirror (복사할 git lab repo 주소 )
cd gitlab저장소이름.git
git filter-branch --tree-filter 'git lfs track "*.{zip,jar 등100MB넘는 확장자명}"' -- --all
java -jar (BFG jar 저장경로) --convert-to-git-lfs '*.zip'
java -jar (BFG jar 저장경로) --convert-to-git-lfs '*.jar'
저장경로는 경로/bfg-1.13.0.jar 까지 입력해주어야한다.
git push --mirror (git hub 레퍼지토리.git)
만약 100MB이상 기록이 없으면
2 -> 5 만 해주시면 됩니다.
안녕하세요 좋은글 감사합니다 근데 안돼요 도와주세요