[Github] 레포 커밋까지 복사하기
· 테크· DevOps
DevOps
Machine translation — switch to KO for the original.
깃헙의 다른 계정으로 레포를 복사하고 싶은 경우가 있다. 물론 commit 내용도 복사할 수 있어야 하므로 setting > transfrer와는 달리 전체 레포가 이동될 수 있도록 한다.
transfer는 소유권의 이전이며, 레포 자체가 이동하지 않는다.
반대로 mirror를 이용한 이전은 잔디기록 외의 모든 것이 복제된다고 볼 수 있다.
먼저 복사할 레포의 코드 url을 복사해두자.
명령프롬포트에서 다음과 같이 순서대로 입력한다. 따라서 레포를 이동시킬 신규 레포를 준비해 놓는 것이 좋다.
git clone --mirror {기존 레포주소}
cd {기존 레포명}.git
git remote set-url --push origin {신규 레포주소}
git push --mirror
이후 신규 레포를 들어가면 레포가 이동된 것을 볼 수 있다.
Comments
No comments yet. Be the first!
319 posts in 테크
- 368Supabase 프로젝트 복사하기 (Restore to a New Project)NEW
- 341Migrating from Permanent Access Tokens to Token Exchange — Why Order Matters
- 326Startup & Product Glossary: Terms Every Solo Founder Should Know
- 325Context Management — How I Do It Now
- 324Claude Code Routines vs Cowork Schedule — What's the Difference?
1–5 / 319