下载大量github开源项目

下载大量github开源项目,git,Git,我正在尝试下载大量的开源项目,比如说100000个 我首先使用github api获取了很多项目名称和用户名。然后,我使用以下shell脚本下载所有项目: file="repo-list.txt" while IFS= read -r line do echo "https://github.com/$line.git" git clone "https://github.com/$line.git" done <"$file" repo-list.txt包含如下文本行:

我正在尝试下载大量的开源项目,比如说100000个

我首先使用github api获取了很多项目名称和用户名。然后,我使用以下shell脚本下载所有项目:

file="repo-list.txt"
while IFS= read -r line
do
    echo "https://github.com/$line.git"
    git clone "https://github.com/$line.git"
done <"$file"
repo-list.txt包含如下文本行:

sakachi99/MarkTracker
gnud/rainbow-shooter
whistlerbrk/ripple
jimpick/jaikuengine
kemper/ai-contest-ruby
jmtame/will_paginate
tom317/shopaholic
JasonTrue/fluent-nhibernate
jphalip/django-treemenus
jonashaag/configfiles
dchristo/CodeProblems
jesperdj/scala-maven-example
jchris/ohai
blueyed/fred-staging
jasonmcleod/hashbrowns.js
有没有一种方法可以跳过请求,或者有更好的方法从github下载大量项目?

git clone "git://github.com/$line.git"

然后,假设存储库是公共的,git不会提示您输入任何凭据。它也会稍微快一点。

缓存--timeout=3600
将在60分钟后超时。您可以使用
credential.helper'store'
,但请先阅读有关安全含义的文档。@Aaron Brager谢谢!让我试试。完整的命令行是:git config--global credential.helper'store'对吗?谢谢!让我试试。
git clone "git://github.com/$line.git"