문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
git:github [2019/08/14 16:11] kwon37xi |
git:github [2019/08/14 16:11] kwon37xi [Duplicate Repository] |
||
---|---|---|---|
줄 33: | 줄 33: | ||
<code sh> | <code sh> | ||
# 먼저 복제본이 들어갈 github repository를 비어있는 상태로 만든다. | # 먼저 복제본이 들어갈 github repository를 비어있는 상태로 만든다. | ||
- | # 복제할 리포지토리를 | + | # 복제할 리포지토리를 --bare로 clone 한다. |
git clone --bare https:// | git clone --bare https:// | ||
- | # 신규 리포지토리에 | + | # 신규 리포지토리에 --mirror로 push한다. |
cd old-repository.git | cd old-repository.git | ||
git push --mirror https:// | git push --mirror https:// |