728x90
반응형
- 부모 Repository 내 자식 Repository 관리
- 한 Repository에서 여러 Repository 관리
부모 저장소 생성
Github에서 저장소 생성 - readme.md 생성 후 커밋
- 아무 커밋이 없는 저장소에 subtree 추가 시 오류
부모 저장소에 자식 저장소 추가
- git subtree add --prefix=[자식 저장소 이름] [자식 저장소 주소] [브랜치 이름]
- 자식 저장소 이름 : 부모 저장소에 폴더 이름으로 들어감
- 자식 저장소 주소 : https://github.com/[본인 Git 이름]/[자식 저장소 이름].git
- 브랜치 이름 : main, origin, master..
git subtree add --prefix=color-button <https://github.com/codingStage/color-button.git main
변동 사항 Push
git push
https://velog.io/@049494/하나의-리포지토리에-여러-프로젝트-올리기
728x90
반응형
'Git' 카테고리의 다른 글
Git Rebase Commit Amend 과거 커밋 수정 (0) | 2024.08.27 |
---|---|
Git PullRequest (0) | 2023.07.13 |