All my projects have the same structure, base files (each containing some code).
Things I would like :
- Version this code ;
- Use it in other projects ;
- Be able to update it in those projects ;
- Only add code in those files, specific to each project (don't need to remove or to alter existing code).
I made some research. Using a package manager wouldn't suit my needs as i would like to add code to the package. I then found git submodules and subtrees and the latter seems to do the job.
What do you think about it ? Am I going in the right path by choosing subtrees or is there a better method ? Should I be using a complete different solution ?
Thanks guys
[EDIT]
More infos :
This "starter kit" is somewhat like a framework. I'm considering to build it in a way that doesn't need to edit its files in other projects but that would add constraints.
- I don't think submodules would fit as i need to work on the code ;
- Each project needs its own repo.