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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:20:58+00:00 2026-05-31T16:20:58+00:00

I wanna create a public repo (bare repo) which contains multiple submodules. I want

  • 0

I wanna create a public repo (bare repo) which contains multiple submodules. I want different people to clone this bare repo, do the changes in any submodules. Update the public repo. However, I realized this is quite painful. I want my repo to look like below:

I have four independent repos. a.kernel b.rootfs c.apps d.modules. I combine them into one superepo called, “build”. From this superepo, I make a bare repo build.git which is shared across people.

Now if someone clones the bare repo and makes changes in the “kernel”,submodule, then he has to do following things to push the changes to the public bare repo.

  1. commit it to “kernel”,repo in the local clone.
  2. commit it to “build”,superepo in the local clone.
  3. commit it to “kernel”, submodule in the public repo.
  4. commit it to “build”, public superepo.
  5. pull the changes in the build.git, public bare repo.

Doing all this is painful. It kind of defeats my purpose of bundling 4 repos into 1 superepo. Is there a better way to go about it. (I assume users who are gonna do it are trusted and are allowed to mess with anything.)

  • 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-05-31T16:20:59+00:00Added an answer on May 31, 2026 at 4:20 pm

    I’m interested to see other answers to this, but I fear that you’re overcomplicating things a bit.

    It is not necessary for other developers to clone build in order to make changes to the other independent repos. Their workflow should look similar to this:

    • Clone apps.
    • Make changes to apps.
    • Push commits up to the server.

    Then, you (or better, a periodic or CI process) simply have to do a git submodule update on the build repo and then build.

    Note that at no point should the developers have to commit anything to (or even touch) the build repo.

    In this example, each submodule should be a completely self-contained repository. If they are not (meaning, if you have to modify build in order to apply any changes in the submodules), then they should not be submodules but rather subdirectories of build.

    If the developers need to build locally, they should do the following once:

    • Clone build
    • Edit .gitmodules to point each submodule at their local repo
    • Run git submodule sync to apply the changes to .gitmodules

    Their local copy of build now points at their local copies of the submodules, rather than to the ‘blessed’ server copy. This means that they can use build to test build the entire project including their local changes without affecting the stable code on the server. But, it is not necessary (or recommended) for the users to push these changes in build up to the server. With GitHub you can prevent accidents by not adding the other developers’ public keys to the build repo.

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

Sidebar

Related Questions

I've got collection of words, and i wanna create collection from this collection limited
Possible Duplicate: Java how to: Generic Array creation I wanna create something like this:
I create a thread in a function,and in another function,I wanna stop this thread.
I wanna create a list of 50 elements which consist of four chars each.
I wanna serialize this class: [Serializable] [XmlRoot(ElementName = Rates)] public class CbrRate : IRate
Can I check with you guys if I wanna create an app that can
I just wanna ask if there's a way in C#/ASP.NET to create 'dynamic' tables/fields
I created a simple netbeans plugin (see this tutorial ) and now i wanna
In AndEngine I defined a PathModifier in this way public static IEaseFunction EASEFUNCTION; EASEFUNCTION
I wanna create query by primary key. Supposed I have class primary key, PersonKey,

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.