Create Template of Git Subtree Repository for simple reuse

317 views Asked by At

Recently i had extensive use of git subtree in a project. Works all really fine. Now it turns out, that this project will be reused a lot of times, whenever i need this kind of project for a customer. You can imagine something like a "framework".

So in Visual Studio I would create a "Solution Template" for simple reusing of the skeleton parts, to adapt only when needed.

But since this skeleton was built with a bunch of subtrees (each of them is a project for itself), i need a mechanism to recreate the git subtree references. I don't want that every developer which uses the skeleton (via solution templates or cloning a repository) has to know about the references to recreate them.

So, is there a (best-practice?) way of accomplish this workflow? Thanks in advance

0

There are 0 answers