Skip to content

Instantly share code, notes, and snippets.

@raelmax
Created October 21, 2012 00:50
Show Gist options
  • Save raelmax/3925354 to your computer and use it in GitHub Desktop.
Save raelmax/3925354 to your computer and use it in GitHub Desktop.
Get all repos from bitbucket account
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 git@bitbucket.org:${1}/$repo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment