블로그 옮겼습니다

Github의 특정 저장소를 모든 커밋 히스토리와 함께 다른 저장소로 옮기기 본문

Development/Git

Github의 특정 저장소를 모든 커밋 히스토리와 함께 다른 저장소로 옮기기

sgc109 2018. 5. 18. 23:48

출처 : https://gist.github.com/niksumeiko/8972566


Moving git repository and all its branches, tags to a new remote repository keeping commits history


git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror



Comments