I have a template written in TeX from which I start most of the documents I write, consisting of a few .tex files and some other auxiliary files too.
I'd like this template and any downstream documents each to have their own (bare) repositories kept on a server, but changes will have to be merged to and from the template repository from the downstream ones. For example, I might want to modify the template and merge those changes into all of the documents I've created.
What's the best way to implement this kind of repository structure?