사용자 도구

사이트 도구


git:github

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
git:github [2019/08/14 16:11]
kwon37xi
git:github [2020/02/26 09:33]
kwon37xi [SSH Key Pair 생성]
줄 15: 줄 15:
 <code sh> <code sh>
 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
 +</code>
 +  * [[:upsource|Upsource]]에서도 사용하려면 ''-m pem'' 옵션 추가할 것
 +
 +<code sh>
 +ssh-keygen -t rsa -b 4096 -m pem -C "your_email@example.com"
 </code> </code>
  
줄 33: 줄 38:
 <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