그냥 개발 및 잡담

[GIT] 깃헙 다른 원격 저장소로 복제

pental 2022. 6. 4. 00:27

깃헙에서 다른 원격 저장소로 복제(커밋을 모두 이동)을 원할때 다음과 같이 하면 된다.

 git clone --mirror https://github.com/[유저]/[저장소].git [폴더]
git remote set-url --push origin [이동할 원격저장소]
git push --mirror