开发者

How to copy git repository including only one subfolder?

开发者 https://www.devze.com 2023-01-11 02:56 出处:网络
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 f

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

精彩评论

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

关注公众号