소스코드를 일시적으로 저장할 pc의 포컬 폴더의 이름을 localFile이라고 했을 때
git clone --mirror <소스코드가 담긴 repository주소> <생성한 pc 로컬 폴더>
git clone -- mirror https://github.com/team_prj localFile
소스코드를 옮겨 담고 싶은 새로운 Repository를 생성
- push시 충돌을 피하기 위해 완전히 비어있는 repository로 생성하는 것을 추천한다. (Readme 등의 파일도 없게)
(Mac기준) Terminal창을 열고 소스코드를 일시 저장해 둔 로컬 폴더(localFile)로 이동한다.
# 로컬 파일의 위치에 따라 해당 멍령어는 달라질 수 있으나,
# cd 혹은 ..cd를 사용해 해당 폴더로 이동하면 됨
cd localFile
git remote set-url origin <내 깃허브 주소>.git
git remote set-url origin https://github.com/깃허브ID/data_team_prj.git
git push