Create git repository for project skeleton

I created a custom project skeleton as a start for my django projects hosted on a public repo on github.

I like to use this as the root folder for my new, public and private projects, also hosted by @github.

The problem is that I cannot use this as a submodule because, as you know, I cannot add submodules inside other submodules in the same git repo. and in my case I want to add submodules inside the skeleton folder.

As an exercise, for public project B, I just created a branch of my skeleton, but it seems complicated because my projectB code is placed inside the skeleton repository on a separate branch.

How do you do this in git?

Also, any github trick on how to create "private branches" from public repositories, for example?

Thanks:)

Julien

+4
source share
2 answers

Finally, I decided to have separate public branches as skeletons, and then use private submodules to host private code.

This solution looks powerful enough and safe for me.

thanks for the suggestions

0
source

I have successfully created git repositories whose submodules were branches in the same repo. However, I have not tried this with sub-submodules. To avoid submodules, just select a branch for your "prototype". Whenever you need a new project branch from this chapter.

PS: if you want a private branch on github, you need to become a member. If you want private branches cheap, just don't upload them to github.

0
source

Source: https://habr.com/ru/post/1300744/


All Articles