Extract part of a git repository?

Posted by Riobard on Stack Overflow See other posts from Stack Overflow or by Riobard
Published on 2010-03-29T13:38:17Z Indexed on 2010/03/29 13:43 UTC
Read the original article Hit count: 388

Filed under:
|
|

Assume my git repository has the following structure:

/.git
/Project
/Project/SubProject-0
/Project/SubProject-1
/Project/SubProject-2

and the repository has quite some commits. Now one of the subprojects (SubProject-0) grows pretty big, and I want to take SubProject-0 out and set it up as a standalone project. Is it possible to extract all the commit history involving SubProject-0 from the parent git repository and move it to a new one?

© Stack Overflow or respective owner

Related posts about git

Related posts about repository