Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Which is the best repo method for common files?

Ben Butler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 20, 2024

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:

  • Make it is easy to deploy each version (without having to gather latest version of common files etc).
  • Keep track of committed changes in a meaningful way for common files and unique/independent files.
  • Reduce the amount of work managing multiple versions.

 

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events