add submodule to git project and download it content -
i've create .gitmodules
file content
[submodule "xxxx/src/main/webapp/js/app/ui"] path = xxx/src/main/webapp/js/app/ui url = git@github.com:xxx/task-core.git
but how make content appear in src/main/webapp/js/app/ui
? did
git submodule init git submodule update
but folder still empty.
instead of manually adding submodule reference .gitmodules
, use git submodule add
. clean .gitmodules file, , try following:
git submodule add git@github.com:xxx/task-core.git -- xxx/src/main/webapp/js/app/ui
then should see edited .gitmodules
submodule directory listed in git status
.
now time run:
git submodule init git submodule update
for further reference, check out this chapter of git-scm.
Comments
Post a Comment