How to push a submodule in github using android studio?

I cloned an android project from github. I made the changes after cloning and moved it to the main repository from Android studio. Everything worked fine, but when I add an external library to my project, I cannot push it. I think this is an add-on module. Can someone tell me how to pop an external library as an add-on from Android studio?

+4
source share
2 answers

If this is a submodule, you should be able to list the gitlink entry , special mode 160000

$ git ls-tree HEAD mysubmodule 
 160000 commit c0f065504bb0e8cfa2b107e975bb9dc5a34b0398  mysubmodule 

It should also be written to your file main repo/.gitmodules.

, , .

, ( Eclipse/Egit)

git submodule add /url/of/library/repo mysubmodule
git add mysubmodule   # no trailing / here)
git commit -m "Add a submodule"
git push toAndroidRemoteRepo
+1

. ,

git submodule add LIBRARY_URL

git submodule update --init --recursive

+3

Source: https://habr.com/ru/post/1541920/


All Articles