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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:14:26+00:00 2026-05-22T14:14:26+00:00

We’re working on a big project here at work with feature bundles ( EDIT

  • 0

We’re working on a big project here at work with feature “bundles” (EDIT: “bundle” is just a term we use internally to refer to a specific functionality package, and isn’t meant as a git term) spread out into several different git repositories. I’m getting ready to send a batch of changes upstream for review and testing, but I’ve run into a snag trying to get everything to play together nicely.

What I’ve done so far is clone from the repo containing the code bundle into my main project, which works insofar as it gets the files where they need to go. However, when I go to add/commit and push, the files from the “bundle” repo won’t go with it, presumably because they are part of a different git repository than the one I’m pushing from.

It’s not really a viable option to ask all the other developers on the team to pull in my “bundle” every time it changes (especially since it’s still somewhat early in the dev cycle and sees a lot of revisions and refactoring), and I don’t really want to copy the files by hand every time I need to send them up, either. Preferably, I’d be able to set things up so that I could pull from my “bundle” repo into my main repo, then push the changes as a whole.

Is there a way to do what I’m looking for with git?

  • 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-22T14:14:26+00:00Added an answer on May 22, 2026 at 2:14 pm

    Your description is still not perfectly clear to me, but it sounds like you might need to use a submodule, a subtree merge, or git subtree (a “third-party” tool).

    You should probably ask around your project to see if there are plans in place for how to handle this kind of situation. Someone may have already planned how to integrate content from the “bundle” repositories into the rest of the code in the “main” repository.


    Submodules are the standard way to publish a link from one repository to another (using special “gitlink” tree entries and data in the .gitmodules file). The use of submodules allows other users to reestablish the repository-inside-repository setup that (it sounds like) you created locally during your development.
    Using submodules will require some workflow changes for any other people that need to access them (i.e. git submodule update (with --init the first time) to make sure they have the right commit subrepository commit checked out after updating (e.g. pulling into) the “main” repository).

    A subtree merge is a way of directly incorporating the content from an unrelated commit (e.g. from the repository of a library) into a subtree (subdirectory) of your main project. Only the users that need to pull in (or push out) updates to the content under the subtree actually need to do anything differently (e.g. they can use git merge -s subtree to merge in updates to the source history). Some people dislike subtree merges because it incorporates (“pollutes”) the main project’s history with a copy of the subtree’s history.

    The git subtree tool (a third-party tool) can help manage normal subtree merges. For example, the git subtree split subcommand can take commits made atop the main repository’s history and rewrite them so that they appear atop the subtree’s original history. This makes it easy to make “local” changes to the subtree content and later push them “upstream”. It also has a --squash mode that offers much of the benefit of a normal subtree merge while preventing the history “pollution”.
    The author of git subtree has linked to a tutorial that seems fairly useful.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.