Cloning all your Github repos at once

Thursday, Nov 19, 2015| Tags: tools

If you are moving to a new machine you’ll probably need to spend some time cloning all your Github repositories. Thankfully there’s an awesome command you can run on the terminal to get them all at once.

curl -s https://api.github.com/users/USER/repos?per\_page=200 | ruby -rubygems -e ‘require “json”; JSON.load(STDIN.read).each { |repo| %x\[git clone #{repo\[“ssh\_url”\]} \]}’

Just remember to replace USER with your Github username.

INTERESTED IN WORKING TOGETHER?

Contact with me