We are doing development for automation code.
Our code automates the company's products and is synced to a particular product version.
Currently, we have 1 big Git repository with multiple branches in it - v1.0, v1.1, v2.0 (automation for version 1.0 goes in v1.0 branch, and so on).
What are the advantages and disadvantages of having these in a single repository with branches vs. keeping each version code in a separate repository ?
Both solutions can work, the answer i'm looking for is a list of pros/cons for either approach.
I know that many teams are using branches to isolate temporary stages in development, such as doing a bug fixes or a new feature, merging back the work into the main development branch in the end.
Other modes of work i know are having different branches for development, release, etc, to separate "cleaner" revisions of the code from dirty ones that are constantly being worked on.
None of these sound similar to what we are currently doing though.
*Note that some modifications in a particular version we make are relevant for all product versions, while some are not.