Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8389427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:43:25+00:00 2026-06-09T18:43:25+00:00

We are doing development for automation code. Our code automates the company’s products and

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:43:27+00:00Added an answer on June 9, 2026 at 6:43 pm

    Multiple branches

    Pros:

    • only one repo to manage (your automate points to one remote)
    • comparison (diff) between branches possible directly from that one repo
    • you can pull any of those branches from that one repo to any other downstream repos which might need it

    Cons:

    • branch cluttering (you need to manage/delete the sum of the branches)
    • tags are for all the repo (not just for “some products”

    Multiple repos

    Pros

    • you can pull from the main repo only what you need and work from there
    • you can clean easily old “branches” (just delete that specific repo)

    Cons

    • repo duplication (takes more space)
    • repo management (you need to point to the right remote(s))

    I would argue the single repo approach is a simpler and more classic approach.
    That said, if you have many versions (which need to be cleaned up regularly), isolating those transient versions in their own repo can work too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been doing some research into finally automating our Development builds and still have
I have been doing active development in C# for several years now. I primarily
I've been doing web development for a while and have yet to read a
I'm doing PHP development and I'm thinking of using one of these. I have
I'm currently doing web development with another developer on a centralized development server. In
I'm doing PHP development on my MacBook and have reached the email functionality of
Whenever I'm doing development on a site which sends emails to users I have
I have been doing web development for more than 4 years. I have worked
Doing Android development on a Mac and this very new phone I have doesn't
I'm currently doing Android development. The class R (an automatically-generated class) has lots of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.