I’m trying to get into Git for managing my myriads of scripts and projects. I’m currently reworking several of my web sites and they will be based off a CMS that’s available via GitHub called Kirby.
Now I’m a bit confused how to best approach this. I’ve cloned the Kirby repository and I want to make some specific core changes to it (delete the example content for one). But then I also want to change stuff around for each of my three web sites (add site specific content, change templates, CSS, etc.).
Do I best create a new repository for each site based off of my changed core clone? Or is it best to create a branch for each site? What happens when I want to follow along with Kirby updates?
There are different strategies you could follow, but to make following up with updates in the future as easy as possible I would probably create one clone of the base CMS which I would then clean up to suit my needs.
This allows you to pull in changes from future updates (hopefully their updates are properly separated so you can just skip the ones related to demo content and include the rest).
Then, for each website you would make another clone and add the license and content as you see fit. For these clones you can pull in the filtered updates from you “naked” central clone.