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

Re: Git Submodule Usage Pattern

From
Andreas Krey <a.krey@gmx.de>
Date
Feb 16, 2010, 20:00 UTC
Message-ID
<20100216200035.GA19834@inner.home.ulmdo.de>
In-Reply-To
<32541b131002160948h317e71f5m2d2cb839470a38f1@mail.gmail.com>

On Tue, 16 Feb 2010 12:48:16 +0000, Avery Pennarun wrote: ...

> Three suggestions I can offer:
...
> 2) Try using relative repo paths (like ../foo.git) in .gitmodules.
Is that a 'try', or are those supposed to work?
4) Use
  [url "git@github.com:apk/"]
      insteadOf = "git://github.com/apk/"

in ~/.gitconfig allows changing the the actual url used. I use that to be able to clone seemingly with the public github url but still be able to push. You can use that to let an submodule point to some other place where there is a clone of the submodule repo, or another access method.

Andreas
Previous: Avery PennarunNext: Avery Pennarun
Message 3 of 4 in “Git Submodule Usage Pattern”
  1. Tim VisherFeb 16, 2010
  2. Avery PennarunFeb 16, 2010
  3. Andreas KreyFeb 16, 2010
  4. Avery PennarunFeb 16, 2010

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.