기타/Github

[Github] Repository clone

dv_jamie 2022. 6. 10. 20:37

깃허브에서 리포지터리를 commit 이력까지 함께 복제하는 방법

* 필요한 것 : 기존 repository 주소 & 신규 repository 주소(복제할 리포지터리 미리 만들어두기)

git clone --mirror {기존 repository 주소}
cd {기존 repository명}.git
git remote set-url --push origin {신규 repository 주소}
git push --mirror