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

Creating a submodule and bringing history from the main project

From
Guillermo Gonzalez <guillermog@tricuspide.com>
Date
Aug 22, 2010, 17:24 UTC
Message-ID
<AANLkTimoTN10EfeiE3Viim_x1Y3jRG89ANzRd69ah7jz@mail.gmail.com>
In-Reply-To
<AANLkTi=JWdp7ZneDpN5r4Zi4VaDfvW40QBZ-=sGx66O2@mail.gmail.com>
Hello!

I have a big project, currently using GIT, and I wish to take some sudirectories -or libraries- and put them in a separate repo (and incorporate them via submodule support), so other commiters can have access to a specific part of the project only.

Is it possible to somehow export the history of say lib/componentX into a new repository componentX.git?

Thank you very much!
Guillermo
Next: Jens Lehmann
Message 1 of 2 in “Creating a submodule and bringing history from the main project”
  1. Guillermo GonzalezAug 22, 2010
  2. Jens LehmannAug 23, 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.