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

Re: Submodules: Publishing a locally created submodule.

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Jul 24, 2008, 23:30 UTC
Message-ID
<48891088.40709@gmail.com>
In-Reply-To
<18071eea0807240840g79da962ci8fbc65546d496323@mail.gmail.com>
Thomas Adam wrote:
Show 12 quoted lines
> Hello all,
> 
> 
> Now:  I want to make mysubmoduleB a submodule which I can publish to
> the shared repository and when others pull, to see that submodule and
> be able to treat it as such.
> 
> But I can't see how to do that.  Can someone help?
> 
> Many thanks in advance.
> 
> -- Thomas Adam
git submodule add <URL where this will exist> ./mysubmoduleB

will recognize that mysubmoduleB is already a valid git repo and add it as is at the current location to the superproject.

Mark
Previous: Sean EstabrooksNext: Thomas Adam
Message 3 of 4 in “Submodules: Publishing a locally created submodule.”
  1. Thomas AdamJul 24, 2008
  2. Sean EstabrooksJul 24, 2008
  3. Mark LevedahlJul 24, 2008
  4. Thomas AdamJul 25, 2008

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.