Created
October 21, 2012 00:50
-
-
Save raelmax/3925354 to your computer and use it in GitHub Desktop.
Get all repos from bitbucket account
This file contains hidden or 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
curl -u ${1} https://api.bitbucket.org/1.0/users/${1} > repoinfo | |
for repo_name in `grep \"name\" repoinfo | cut -f4 -d\"` | |
do | |
repo="${repo_name}.git" | |
git clone [email protected]:${1}/$repo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment