We are considering introducing Git into our workflow. At the moment, we have a general PHP template that we copy paste for each new project. The copied template then gets extended with modules specific to the project. Sometimes it happens that while working in a project, we do some adjustments that would be good for the template, we then copy paste these back into the master template.
If we were to introduce Git, our master template would be the main repository. Every new project would be a clone of the template (so bugfixes in the template can be pulled down). However, how would you manage pushing changes back to the master template? We can't push all files, because then our master template would be littered with project specific modules.
Is there a way to only push specific commits to a remote repository?