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

Re: Git-submodule questions

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 19, 2007, 21:22 UTC
Message-ID
<alpine.LFD.0.999.0710191420410.26902@woody.linux-foundation.org>
In-Reply-To
<428b865e0710191354v59f558bbv4536d60902977ac@mail.gmail.com>
On Fri, 19 Oct 2007, Evan Carroll wrote:
Show 5 quoted lines
>
> I've got a set of 5 git repositories on one computer. I'm looking for
> a way to more cleanly distribute them, and keep them in sync when i
> distribute them. I'm trying to discern whether the scantly documented
> git-submodule can accomplish this...
Sounds like subprojects are indeed a good way for you.
Show 6 quoted lines
> All of my git modules are in one place, /srv/DM: /srv/DM/a ..
> /srv/DM/e to add them all into one super repository for easier
> distributing I have to move them all to /srv/DM/git-old, then git init
> in /srv/DM, then I git submodule add all of the modules in
> /srv/DM/git-old. The question then comes down to why do I need to have
> my git-submodules in /srv/DM, and /srv/DM/git-old.
You shouldn't need to do anything even half-way complicated like that.
In fact, it should be enough to do
	cd /srv/DM
	git init
	git add .
	git commit
and you're now literally all done!
		Linus
Previous: Evan CarrollNext: Linus Torvalds
Message 2 of 3 in “Git-submodule questions”
  1. Evan CarrollOct 19, 2007
  2. Linus TorvaldsOct 19, 2007
  3. Linus TorvaldsOct 19, 2007

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.