내 상황은 이랬다. A라는 깃랩이 있었고, A 깃랩을 이미 로컬로 받아서 작업을 하고 있는 상태였다. 그리고 B깃랩을 만들고, B깃랩에 A깃랩을 복사하고 싶었다.
내가 한 방법은 아래와 같다.
git clone [file://path/](file://path/B)A repo 을 한다.git remote rm origin 으로 기존 A repo의 remote를 제거한다.git remote add origin <B repo path> 를 통해 remote 경로(깃랩 repo)를 B repo로 지정한다.git push -u origin <develop branch> 를 통해 해당 브랜치에 upstream 해준다.참고
https://stackoverflow.com/questions/17546246/git-cloning-repository-into-new-repository