git partial clone with multiple remotes - Stack Overflow

I am working with two repos (repo_a and repo_b) which are two forks of the same project. They are both

I am working with two repos (repo_a and repo_b) which are two forks of the same project. They are both very large in terms of files and history. I need to use a small set of branches from each of them, so I would ideally like to have a partial clone which references both as remotes.

What I did was making a partial clone of repo_a then adding the remote for repo_b:

git clone -b some_branch --filter=blob:none https://.../repo_a.git
cd ./repo_a
git remote add repo_b https://.../repo_b.git

The git config shows the following lines under the [remote "origin"] section as expected, indicating a blobless clone:

    promisor = true
    partialclonefilter = blob:none

but not under the [remote "repo_b"] section. Does it mean that only fetches from origin/repo_a will be blobless, while fetches from repo_b will fetch blobs? Should I add those two lines under [remote "repo_b"] or is there a better way to go about it?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742362395a4429644.html

相关推荐

  • git partial clone with multiple remotes - Stack Overflow

    I am working with two repos (repo_a and repo_b) which are two forks of the same project. They are both

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信