Submodules: Publishing a locally created submodule.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Adam
Date: Thursday, July 24, 2008 - 8:40 am

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Submodules: Publishing a locally created submodule., Thomas Adam, (Thu Jul 24, 8:40 am)
Re: Submodules: Publishing a locally created submodule., Sean Estabrooks, (Thu Jul 24, 9:21 am)
Re: Submodules: Publishing a locally created submodule., Mark Levedahl, (Thu Jul 24, 4:30 pm)