Hi everyone,
I have a JavaScript project that has multiple deployed versions that share some common files. I have had a look at submodules and subtrees etc and wondering what the best approach for my case is.
Eg. I have 3 different deployment versions: Red, Blue and Green. Each version contains an identical file structure, but some JS files are unique to each version and some are identical across all versions. So, I am keeping all 3 versions in a single Repo, but each time I edit one of the common files in one of them, I need to copy that updated file into the other 2 versions to replace the file in their identical location. I would prefer to just have one version of the common files, but not sure the best way to do this. I'm sure there are many ways and would like to hear what everyone thinks is the best - especially so I can:
Note: I am working on this alone, so no need to consider merge conflicts from multiple accounts etc. Also, I am using Sourcetree and prefer to be able to do everything in there without having to do any command execution.
Cheers,
Ben