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

  • Home
  • SEARCH
  • 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 8763317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:45:16+00:00 2026-06-13T15:45:16+00:00

Let’s call 2 projects A and B. Here’s the structure for each one of

  • 0

Let’s call 2 projects A and B. Here’s the structure for each one of them :

/
|- Foo
|   |- core
|   |    |- bar.txt
|   |    |- ...
|   |- specific
|          |- ...
|- ...

The content of /Foo/core/ should be present AND in sync locally in A and B. That means that, if i edit bar.txt in project A, I should be able to get that change in project B, on the same machine, and vice versa.

I tried to create a project named “Core”, and making it a submodule of A and B. Problem is, if I edit bar.txt, push it to a remote, and then push A, obviously I can’t have the code on project B with a submodule update. It’s not the same project.

I also tried subtree merging. Problem is, “Core” is NOT meant to be a standalone project, and I can’t develop it like it is. It’s just resources files and common functionning for something larger. Therefore, I would like to be able to edit my bar.txt either in A and B, test it there as part of this project specifically, and then get it somehow in the other project to test it too.

On the Git Book, on the chapter about subtree merging, it is said :

You can […] make changes in the rack subdirectory of your master branch and then merge them into your rack_branch branch later to submit them to the maintainers or push them upstream.

But it is not explained how should I do that, nor how can I keep my 2 local folders in sync.

  • 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-13T15:45:17+00:00Added an answer on June 13, 2026 at 3:45 pm

    Submodules will work. When you make a change to the core project when working on project A, you push changes in both of those. To update core in project B, you simply need to pull the changes when in Core in project B. CD out to project B, git add -A && git commit -m "updated core" to update project B to the latest of core.

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

Sidebar

Related Questions

Let's say I have a C++ Visual Studio 2010 solution with 2 projects: one
Let's say I can call a method like this: core::get() . What is the
Let's say I have four samples: id=1, 2, 3, and 4, with one or
Let's say I have the following structure: abstract class Hand {} class Rock extends
Let's say that I've got a sheet - number one - with over 5000
Let's say you create a wizard in an HTML form. One button goes back,
Let's say I'm outputting a post title and in our database, it's Hello Y’all
Let us consider there are many system commands inside a shell script with each
Let's say I have a resource called Session. The client would call PUT to
Let's have an example like below: package xliiv.sandbox; import android.app.Activity; import android.os.Bundle; import android.util.Log;

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.