开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜