사용자 도구

사이트 도구


git:github

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
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 한다.+# 복제할 리포지토리를 --bare로 clone 한다.
 git clone --bare https://github.com/exampleuser/old-repository.git git clone --bare https://github.com/exampleuser/old-repository.git
  
-# 신규 리포지토리에 ''--mirror''로 push한다.+# 신규 리포지토리에 --mirror로 push한다.
 cd old-repository.git cd old-repository.git
 git push --mirror https://github.com/exampleuser/new-repository.git git push --mirror https://github.com/exampleuser/new-repository.git
git/github.txt · 마지막으로 수정됨: 2021/11/19 10:14 저자 kwon37xi