⬛️ Git
[Git] 협업 레포지토리를 내 레포지토리로 가져오기
10000COW
2022. 12. 19. 00:58
728x90
협업 레포지토리의 commit 내역을 유지하면서 내 Github 저장소로 가져오기
1. git clone --mirror old-repository.git(옮기고 싶은 git주소)
2. cd old-repository
3. git remote set-url --push origin new-repository.git(새로운 git주소)
4. git push --mirror
만약, 가져오고 싶은 레포지토리의 주소가 'https://github.com/ljykevin3882/Tayong' (FROM) 라고 해보겠습니다
그리고 제가 가져올 레포지토리를 제 Github에 만든 후, 가져올 레포지토리 주소를 https://github.com/YEOMJINSEOP/Tayong (TO)라고 가정해보겠습니다.
터미널을 여신 후, 다음과 같은 순서로 Command를 작성하시면..
1. git clone https://github.com/ljykevin3882/Tayong.git
2. cd https://github.com/ljykevin3882/Tayong
3. git remote set-url --push origin https://github.com/YEOMJINSEOP/Tayong.git
4. git push --mirror
저만의 레포지토리에 복사가된 것을 보실 수 있습니다!
728x90