git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Submodules: Publishing a locally created submodule.
@ 2008-07-24 15:40 Thomas Adam
  2008-07-24 16:21 ` Sean Estabrooks
  2008-07-24 23:30 ` Mark Levedahl
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Adam @ 2008-07-24 15:40 UTC (permalink / raw)
  To: git mailing list

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-25  0:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-24 15:40 Submodules: Publishing a locally created submodule Thomas Adam
2008-07-24 16:21 ` Sean Estabrooks
2008-07-24 23:30 ` Mark Levedahl
2008-07-25  0:05   ` Thomas Adam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).