I have started using using git recently and use bitbucket also to host my code. I am comfortable with the basics such as making a branch, merging it and pushes, pulls etc but have a situation now which i'm not sure about.
I have basically developed a cms which I wish to use in multiple projects. I have a repository for this which I call 'cms_template'.
Whenever I wish to create a new project I just clone this into a new repository.
Basically my question is this: I have website A and website B. Both are clones of the cms_template repo but obviously will have changes in their own right as they are different websites. I don't want to push changes to these back to the cms_template repo but when I update the cms_template repo, I want these updates to be 'pullable' into each website. How do I best go about merging any updates I make to the original cms_template into these projects?
I also want to be able to push both website A and B to their own remote repositories also but am confused about the best way of doing this and not conflicting with the cms_template repo.
Hope my question makes sense - am happy to clarify if necessary.
Thanks in anticipation of your advice.