프로그래밍
[토막팁] Using git submodule with specific branch / git submodule 특정 브랜치만 이용하기
2kindsofcs
2020. 7. 9. 20:28
at the root of project repositroy, enter below:
$ vim .gitmodules
add the branch you want.
(not used to vim? press I key, modify doc, press esc, enter :+q)
[submodule "your-submodule-name"]
path = your-submodule-name
url = https://github.com/your-submodule-path
branch = feature/something <!-- add name of branch you want -->
then update the submodule.
$ git submodule update --remote
반응형