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 8350075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:11:59+00:00 2026-06-09T08:11:59+00:00

I have following situation in my project: There will be 2 source code repositories

  • 0

I have following situation in my project:

There will be 2 source code repositories however each of them should have “shared” area for some part of code (potentially more than one).

Lets assume following structure of repositories and their folders (and files within these folders).

Repo1

  • folderA
  • folderB
  • folderC

Repo2

  • folderA
  • folderD
  • folderE

“folderA” should contain exactly same “copies” of files. So when I commit some change to Repo1/folderA and then checkout/update Repo2/folderA, I should be able to see these changes. Of course it would be great if it could work the same in opposite direction.

Unfortunately I cannot structure source code in another way and create some kind of shared library.

I’m looking for VCS that could help me with solving this problem in a best way (SVN, Git, …)? Do you have any experience with this kind of setup and could you recommend something?

  • 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-09T08:12:01+00:00Added an answer on June 9, 2026 at 8:12 am

    If you are using Subversion, then you could use externals, which will allow you to have a single folder in your repository with the shared code, and each of the trunks in your two project folders would have their externals property set to point to this shared repository location.

    It’s two way, so you can make changes to the shared folder and they will be picked up when you update either project folder, or you can make changes from the local project folder, and they will be submitted to the shared repository folder.

    However, you should be aware of the issues with externals.

    Another option may be to completely seperate the source of the shared code into a third party library, and then use NuGet for easy deployment of that library to your various projects. TeamCity for example can build NuGet packages (and acts as a NuGet package server) for you on commits of your shared library code.

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

Sidebar

Related Questions

I have a following situation in my project. There are some tag values which
Possible Duplicate: How does Copy-local work? I have following situation: there's a project named
I have the following situation Project A - Uses Castle Windsor v2.2 - Uses
I have the following situation. My project has a main.scala.html file and a folder
This is not a ruby/rails project deploy. I have the following situation and I
my situation is the following: I have a project with JSP, Struts and a
I have following situation: I have a Maven war project in NetBeans 6.7 I
Consider the following situation. I have 3 tables in a resource planning project(created using
I have the following situation on my hands. In the project I work on
Consider the following situation: I have two android projects named P1 and P2 which

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.