문제 : 연관되는 Repository가 너무 분산되어 있다.
해결 : 하나의 리포지토리에 해당 리포지토리를 넣는다.
방법 :
담을 리포지토리 생성 -> 깃 클론 -> initial commit ->
git subtree add --prefix=<폴더 이름> <자식repos 주소> <branch 이름>
자기가 넣고자 하는 자식 repo를 어떤 폴더이름으로 추가할지를 ,폴더이름
에 적어주고, 자식 repo주소
도 채워주고 해당 자식 repo의 어떤 브랜치를 넣어줄지를 branch이름
에 넣어준다.
ex) git subtree add --prefix=gitRepository2-V9 https://github.com/jeli01/GitRepository2-V9.git main
그리고 git push -> 기존 리포지토리 삭제 하면 끝이다.
'Git' 카테고리의 다른 글
fatal: the remote end hung up unexpectedl (0) | 2025.01.25 |
---|---|
fatal: Authentication failed for 오류 해결 (0) | 2025.01.14 |