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

Submodules: Publishing a locally created submodule.

From
Thomas Adam <thomas.adam22@gmail.com>
Date
Jul 24, 2008, 15:40 UTC
Message-ID
<18071eea0807240840g79da962ci8fbc65546d496323@mail.gmail.com>
Hello all,

I'm a little confused having read the submodule chapter in the GIT users' manual and was wondering if someone here can help.

I've setup a bare repository with some submodule in it which I and others are able to clone from just fine -- in that sense, it acts just like an "ordinary" repository.

But I am a little stuck getting my head around a scenario:
Most us here work in a very CVS-like way.  I did the following:

git clone ssh://foo/bar/project myclone cd ./myclone

In there is a directory which is a submodule.  At the time I created
the bare repo it was cloned already from a repo which had a submodule.
 I decided I wanted another submodule to be published so I did this:
cp -r ./mysubmoduleA ./mysubmoduleB && rm ./mysubmoduleB/.git
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
Next: Sean Estabrooks
Message 1 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.