开发者

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' li开发者_如何转开发ke from public repos ?

Thanks :)

Julien


I've successfully created git repos whose submodules were branches in the same repo. I haven't tried this with sub-submodules though. To avoid sub-submodules, just dedicate a branch for your "prototype". Whenever you need a new project branch from this head.

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜