Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add file to multiple git repos at the same time?

I have been working on Android applications for a while now. One problem I faced quite often is that new people have trouble keeping up with all the dependency of library projects. Things went from bad to worse with my latest project, which we use 7 libraries (2 developed in-house and a lot of open-sources). Right now we are using both Bitbucket and Github for our solution.

Is it possible to just combine all the projects under one Git repo? So we can just clone one and start working right away while maintaining the connection to the original repo of those open-source project.

For instance, it uses ActionBarSherlock, FacebookSDK, SlideMenu, etc.

If not, would Maven solve this problem?

like image 678
RobGThai Avatar asked Jan 19 '26 21:01

RobGThai


1 Answers

Submodules are the solution to this problem.

You would add the repositories of those libraries as submodules to the repository of your app.

like image 57
Daniel Hilgarth Avatar answered Jan 22 '26 17:01

Daniel Hilgarth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!