git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: sub module branches

From
Avery Pennarun <apenwarr@gmail.com>
Date
Mar 9, 2010, 00:47 UTC
Message-ID
<32541b131003081647j2eadb8dfs758611fd4007deea@mail.gmail.com>
In-Reply-To
<b42431c81003080314j694114b5o433988470f13328a@mail.gmail.com>
On Mon, Mar 8, 2010 at 6:14 AM, Mahesh Vaidya <forvaidya@gmail.com> wrote:
Show 11 quoted lines
> I have a situation like
>
> project/source.git
>           /submod_1
>           /submod_2
>
> I need to modify code in all 3 repos viz. source, submod_1 & submod_2.
>
> If I create branch in source, will it propogate to remaining
> submodules ? or in other words can I have "global branch" and "global
> tag"
You could use git-subtree instead: http://github.com/apenwarr/git-subtree

That will allow you to branch all the repos at once. It slightly increases the effort required to extract the changes and submit them upstream again, though.

Have fun,
Avery
Previous: Peter Krefting
Message 3 of 3 in “sub module branches”
  1. Mahesh VaidyaMar 8, 2010
  2. Peter KreftingMar 8, 2010
  3. Avery PennarunMar 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.