티스토리 뷰

Git

Git Repository migration

Young_J 2021. 2. 28. 17:54

 

저장소1의주소에서 저장소2의주소로 migration 하기.

 

$git clone --mirror 저장소1의주소

 

$cd 저장소1의주소.git

 

$git remote set-url --push origin 저장소2의주소

 

$git push --mirror

 

 

 

출처 : wrjeoung.tistory.com/15

 

[Git] 저장소 히스토리까지 전체 복사

저장소1의주소 > 저장소2의주소 로 복사. $git clone --mirror 저장소1의주소 $cd 저장소1의주소.git $git remote set-url --push origin 저장소2의주소 $git push --mirror

wrjeoung.tistory.com

 

'Git' 카테고리의 다른 글

Git branch 옵션 정리  (0) 2021.03.05
Git remote repository 변경  (0) 2021.03.03
push 된 file 에 .gitignore 적용시키는 방법  (0) 2021.01.22
Git branch 나누기  (0) 2020.12.21
Git 프로젝트파일 업로드  (0) 2020.09.08
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함