Created
May 24, 2018 01:19
-
-
Save shaoshing/3d7bb8cb550eec5835cabbae2cb23dc7 to your computer and use it in GitHub Desktop.
Clone all private github repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TOKEN="[PERSONAL-ACCESS-TOKEN]" | |
curl -u "$TOKEN:x-oauth-basic" -s https://api.github.com/user/repos?visibility=private | | |
awk '/ssh_url/ {print $2}' | | |
sed 's/[\"\,]//g' | | |
xargs -L1 git clone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment