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
Post a Comment