Tip

Git 대용량 Mirroring 하기! (GitLab => GitHub)

Hasky96 2022. 4. 11. 23:56

 

용량이 큰경우는 Mirroring에 어려움이 많습니다.

 

* 지금 현재 사용하는 Git 의 .gitconfig입니다. ( ~/.gitconfig)

.gitconfig

1. git clone --bare [미러링대상 Repo]

 

2. bfg-repo-cleaner 파일을 다운로드 합니다.

https://rtyley.github.io/bfg-repo-cleaner/

 

3.  java -jar [다운받은 bfg-repo-cleaner 위치] --strip-blobs-bigger-than 100M --no-blob-protection [clone해온 Repo]

 

4. git push --mirror [미러링 도착지]