CICD
새로운 repo 에 git commit이력까지 복사하기
Devops mg
2023. 5. 2. 15:02
git bash 창에 아래 순서 대로 입력한다.
git clone --mirror <기존 레파지토리 주소> // ex) git clone --mirror https://github.com/myunggiM/asis.git
cd asis.git // 로컬로 클론한 곳으로 이동
git remote set-url --push origin <신규 레파지토리 주소> // ex) git remote set-url --push origin https://github.com/myunggiM/tobe.git
git push --mirror // 신규 레파지토리에 push