git - How to maintain repositories into a single repository -


i have repository each micro-services ('a', 'b', ..). structure of repository looks :

a |-dockerfile |-src   |-java   |-groovy 

since of these repositories belongs project called 'wholeproject', want maintain repository 'wholeproject' looks :

wholeproject |-docker-compose.yml |-µs   |-a   |-b   |-.. 

so maintain docker-compose file , repository contains revelant things project.

is idea ? how can perform ?

you consider using git submodules with:

cd /path/to/wholeproject git submodule -- /url/to/repo/a µs/a git submodule -- /url/to/repo/b µs/b 

that way, can clone wholeproject a:

git clone --recursive 

and a , b @ last recorded sha1.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -