Study/Git
팀 프로젝트 이후 소스코드 내 Repository로 옮기기
seungY
2023. 3. 26. 01:51
요약
git clone --mirror {기존 팀 프로젝트 Repository 주소}
cd {기존 팀 프로젝트 Repository 명}.git
git remote set-url --push origin {개인 리파지토리 주소}
git push --mirror
1. git clone
기존 팀 프로젝트의 repository에서 로컬 폴더로 clone
git clone --mirror {기존 팀 프로젝트 Repository 주소}
2. 로컬 폴더로 이동
cd {기존 팀 프로젝트 Repository 명}.git
3. 개인 repository 주소로 저장소 url 변경 - remote set-url 사용
git remote set-url --push origin {개인 리파지토리 주소}
4. push
git push --mirror