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

Sync submodules

From
EDEm DauPhu <emdauphu@gmail.com>
Date
Jul 29, 2010, 14:53 UTC
Message-ID
<AANLkTimMBBa2HEv4P45=MiWuk1K3ak_LFgWgEq_Zzfj0@mail.gmail.com>
Hi,

I have hard times trying to understand submodules and superprojects (also I'm knew to git). Here we use Clearcase (yeay...) and I would like to use git on top of it on my desktop.

There's a project stored in two clearcase vobs. What I did is "git init", "git add ." and "git commit -m "initial commit"" in both clearcase vobs. I created then a directory (D:/myProject for example) and in this directory I did "git init", "git submodule add Y:\myview\projA" and "git submodule add Y:\myview\projB". And finally "git commit -m "initial commit"".

It is working fine, I build it with hudson specify the "D:/myProject/.git"repo.

How should I update it now ? I believe I have to do "git add ." or "git commit" in both vobs corresponding to the first two repos when new dev are added there.

What should I do next ? I don't think an add or a commit is needed in the superproject. I don't see any changes when building my project.

I hope it is clear enough.
Thank you.
Message 1 of 1 in “Sync submodules”
  1. Em DauPhuJul 29, 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.