Clone all my github repositories in to current directory.

Clone all my Github repositories in to the current directory with one bash line.

curl -s https://api.github.com/users/tommyshem/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone

or you can use this one if jq command is installed on your system

curl -s https://api.github.com/users/tommyshem/repos | jq .[].clone_url | xargs -n1 git clone
Share