git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Thomas Adam" <thomas.adam22@gmail.com>
To: "git mailing list" <git@vger.kernel.org>
Subject: Submodules: Publishing a locally created submodule.
Date: Thu, 24 Jul 2008 16:40:43 +0100	[thread overview]
Message-ID: <18071eea0807240840g79da962ci8fbc65546d496323@mail.gmail.com> (raw)

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

             reply	other threads:[~2008-07-24 15:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 15:40 Thomas Adam [this message]
2008-07-24 16:21 ` Submodules: Publishing a locally created submodule Sean Estabrooks
2008-07-24 23:30 ` Mark Levedahl
2008-07-25  0:05   ` Thomas Adam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18071eea0807240840g79da962ci8fbc65546d496323@mail.gmail.com \
    --to=thomas.adam22@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).