Re: Submodules: Publishing a locally created submodule.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 24 Jul 2008 16:40:43 +0100
"Thomas Adam" <thomas.adam22@xxxxxxxxx> wrote:

> 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.

Hi Thomas,

Submodules are very much fully formed independent repositories.   So the
first step is to create a new Git repo that holds the files you want.  Publish
this repo in a public place, presumably the same place you published your
other submodules.

In your supermodule use  "git submodule add" to include the new public repo
as a submodule in the directory of your choice.   After which you can commit
the change and push it out.  Other people will need to do "git submodule update"
to make their repos aware of the new submodule.

HTH,
Sean
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux