LoginSignup
7
7

More than 5 years have passed since last update.

Githubアカウントのリポジトリを全部cloneする

Posted at

CLIでAPIを使う。

curl https://api.github.com/users/github/repos | grep "\"clone_url\": \".*\"" | sed -e "s/.*\(http.*\.git\).*/\1/" | xargs -n1 -P15 git clone

-P は最大平行プロセス数。30秒で30個ぐらい一気にチェックアウトしてた。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7