Search code examples
djangogitgithubbranchgit-submodules

create a git repo for project skeleton


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

Id like to use this as root folder for my new, public and privates projects, also hosted @github.

The problem is i cannot use this one as a submodule because as fas ar i know i cannot add submodules inside another submodules in the same git repo. and in my case i want to add submodules inside the skeleton folder.

As exercice, for a public projectB, i just created a branch of my skeleton but seems tricky as my projectB code is hosted inside the skeleton repo on a separate branch.

How would you do this in GIT ?

Also, any trick at github on how to create 'private branches' like from public repos ?

Thanks :)

Julien


Solution

  • I finally decided to have seperate public branches as skeletons then use private submodules to host private code.

    this solution looks powerful and secure enough for me.

    thanks for suggestions