prom85 prom85 - 22 days ago 6
Git Question

Git - one super repo with many sub repos (mostly foreign)

I would like following setup:


  • Having one main
    projects
    folder

  • in this
    projects
    folder I have many other folders (including foreign git repositories)



Usecase

Sync the whole
projects
folder to a local git repo (my usb stick) to be able to keep my whole personal project structure in sync between two computers. But all foreign git repos should stay and keep working.

I'm using TortoiseGIT, is there any possibility to do what I want? Having a personal super git repo that contains many individual sub repos?

Answer

Having a personal super git repo that contains many individual sub repos?

This is mainly what git submodules are for.
Your main project will record: