Consider using Git submodules for when using multiple repositories within the super project.
Submodules are a bit trickier to use in the beginning in comparison with a single repository, however it pays off as they will allow you to have fine grained control over each individual repository's history (.git
).
In the example of your question, the django-backend
and test-vue
repositories could be submodules added to the my_folder
's repo.
git init
git submodule add [remote to django-backend] django-backend
git submodule add [remote to test-vue] test-vue
git submodule init
git submodule update
Adding submodules to the super project will create file named .gitmodules
.
Each submodule will have its own history. For example, each submodule's latest commit can be obtained like this:
cd submodule-dir
git pull
cd ..
And then commit your work, with the submodule sync'ed:
git commit -am "Synchronized with submodules"
Later on, when cloning the super project repository, it is necessary to use git clone --recurse-submodules [url/to/super/project]
to bring it back with all its submodules.
In general, that's it. There are many good answers on Stack Overflow that details the manageability aspects of using git repository containing submodules.