0kcats
0kcats

Reputation: 743

How to organize github repository that is used by several products with different release cycles

We have a github repository that is used by several products (this is a C++ lib that is built and linked to). These products have different release schedule, so they have code freezes at different time. What is the recommended approach to handle this? Presently we have a branch for each product and them sync from master time to time.

There are four products.

Upvotes: 0

Views: 193

Answers (1)

JrBenito
JrBenito

Reputation: 1013

If they are 4 separated products and share main code (master), I would do one of the two below:

  1. Use diferent branches named after product. Each developer shall create their own branch for working and push to product branch as needed (this need to be more elaborate but you got the idea). This approach seams to be what you are doing so far.
  2. Use 5 different repositories, one master with dev code (master you mentioned), other 4, one for each product with branches, release tags, etc.

The 2nd method is more clear and easy to understand (product repos are fork of master at the begin but than they derived as the product goes).

Elaborate more if you want to discuss options.

Upvotes: 1

Related Questions