How to copy git repository including only one subfolder?
Is there a way to c开发者_运维百科reate a new git repository from an existing one, the new repository should include only files located in the specified subfolder and only commits that affects these files?
I think you are looking for:
git filter-branch --subdirectory-filter foodir -- --all
(Example taken from the git documentation)
精彩评论