The problem is the Android Project which I have has in all 3 modules viz. 1 main & other supporting modules.
Currently I pushed the whole project to BitBucket which includes the modules too, but I'm confused if I should just push modules in different repos & not in a single repo like I have did.
If different repos is the best way to go head, then how should I link all the 3 repos to represent as a single project.
If it is one Android project then you should probably use submodules . Read this tutorial to know more about how to create submodules:
https://git-scm.com/book/en/v2/Git-Tools-Submodules
Then you can use
git submodule foreach git pull
To pull all submodules recursively or
git pull --recurse-submodules
I recommend you to create another Bitbucket repos for each supporting module then you could use git submodules to link them with your main project or just upload the artifacts to a maven repo like jcenter, sonatype or bintray, then you can compile they as dependencies in build.gradle
. I prefer the second option.
Git submodule:
http://blogs.atlassian.com/2013/03/git-submodules-workflows-tips/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.