threads / discuss / 24830

Creating a submodule and bringing history from the main project

Subject: Creating a submodule and bringing history from the main project

## tl;dr

2 messages between Aug 22, 2010 and Aug 23, 2010.

replies: 1people: 2as markdown or json

Guillermo Gonzalez· Aug 22, 2010, 17:24 UTC · lore
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
Jens Lehmann· Aug 23, 2010, 16:30 UTC · re: Guillermo Gonzalez · lore

Re: Creating a submodule and bringing history from the main project

Am 22.08.2010 19:24, schrieb Guillermo Gonzalez:
> Is it possible to somehow export the history of say lib/componentX
> into a new repository componentX.git?

Sounds like you want to use "git filter-branch", see: http://progit.org/book/ch6-4.html#making_a_subdirectory_the_new_root

← back to recent threads