Git - 批量克隆仓库 [英] Git - Clone Repositories in Bulk

查看:1135
本文介绍了Git - 批量克隆仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚加入了一家拥有git服务器(通过bitbucket托管)的公司,该公司拥有大约80个项目,每个项目下都有多个存储库(可以说容易数学)。有一种简单的方法可以递归地克隆所有这些库吗?



您可以获得来自BitBucket API的存储库列表。然后只需循环遍历每一个克隆。


I just joined a company that has a git server (hosted through bitbucket), which has about 80 projects which have multiple repositories under each project (lets say 5 for easy math). Is there an easy way to recursively clone all 400 of these repositories?

解决方案

You will have to script hat yourself.

You can get a list of the repositories from the BitBucket API. Then just loop through them an clone each one.

这篇关于Git - 批量克隆仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆