{"thread":{"id":"24830","subject":"Creating a submodule and bringing history from the main project","startedAt":"2010-08-22T17:24:47Z","lastAt":"2010-08-23T16:30:55Z","messageCount":2,"participants":["Guillermo Gonzalez","Jens Lehmann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"148715","messageId":"AANLkTimoTN10EfeiE3Viim_x1Y3jRG89ANzRd69ah7jz@mail.gmail.com","threadId":"24830","inReplyTo":"AANLkTi=JWdp7ZneDpN5r4Zi4VaDfvW40QBZ-=sGx66O2@mail.gmail.com","subject":"Creating a submodule and bringing history from the main project","fromName":"Guillermo Gonzalez","fromEmail":"guillermog@tricuspide.com","sentAt":"2010-08-22T17:24:47Z","receivedAt":"2010-08-22T17:24:47Z","isPatch":false,"sender":{"key":"guillermog@tricuspide.com","avatar":"https://gravatar.com/avatar/ddca2a3b6a23ad2f4552f145eeb7ef36559d52d958a1d804fc80a06829350b4e?d=mp&s=160"},"body":"Hello!\n\nI have a big project, currently using GIT,  and I wish to take some\nsudirectories -or libraries- and put them in a separate repo (and\nincorporate them via submodule support), so other commiters can have\naccess to a specific part of the project only.\n\nIs it possible to somehow export the history of say lib/componentX\ninto a new repository componentX.git?\n\nThank you very much!\n\nGuillermo\n"},{"id":"148760","messageId":"4C72A23F.4030600@web.de","threadId":"24830","inReplyTo":"AANLkTimoTN10EfeiE3Viim_x1Y3jRG89ANzRd69ah7jz@mail.gmail.com","subject":"Re: Creating a submodule and bringing history from the main project","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2010-08-23T16:30:55Z","receivedAt":"2010-08-23T16:30:55Z","isPatch":false,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"Am 22.08.2010 19:24, schrieb Guillermo Gonzalez:\n> Is it possible to somehow export the history of say lib/componentX\n> into a new repository componentX.git?\n\nSounds like you want to use \"git filter-branch\", see:\nhttp://progit.org/book/ch6-4.html#making_a_subdirectory_the_new_root\n"}]}