Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
# Clone all github.com repositories for a specified user.
if [ $# -eq 0 ]
then
echo "Usage: $0 <user_name> "
exit;
fi
USER=$1
# clone all repositories for user specifed
for repo in `curl -s https://api.github.com/users/$USER/repos?per_page=1000 |grep git_url |awk '{print $2}'| sed 's/"\(.*\)",/\1/'`;do
git clone $repo;
done;
@vke-code

This comment has been minimized.

Copy link
Owner Author

commented Jun 13, 2019

thank you

Wow, I thought this would be a gist that only I use! I am so glad this is useful for someone else!

@RootAndroid58

This comment has been minimized.

Copy link

commented Jul 17, 2019

thanks man

@danilofreire

This comment has been minimized.

Copy link

commented Aug 22, 2019

Thanks a lot! It's very a very useful little script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.