- 작업할 깃허브 레포지토리를 새로 파주세요.
- 해당 레포지토리를 로컬에 클론합니다. (A 레포지토리)
- A 레포지토리에 아래와 같은 명령어를 입력합니다.
git submodule add -b '브랜치명' '포크 레포지토리 SSH/HTTPS 코드' '서브모듈 이름'
git submodule update --remote
git commit, git push
git submodule add -b '브랜치명' '포크 레포지토리 SSH/HTTPS 코드' '서브모듈 이름'
git submodule update --remote
git commit, git push