1. 합칠 repository를 저장할 대표 repository 생성
2. 대표 repository 원격저장소에 복제(clone)
git clone [레파지토리 주소]
3. repository 합치기
대표 repository를 저장한 원격저장소로 이동해서 진행
git subtree add --prefix=[합쳐질 레파지토리 명] [합쳐질 레파지토리 주소] [브랜치 명]
- 단, 오류가 뜰 수 있음
해결) 아무 폴더나 파일을 만들어 commit 해주기
4. git push 하기
git push origin [브랜치 명]