Skip to content

Instantly share code, notes, and snippets.

View laszlomiklosik's full-sized avatar

Laszlo Miklosik laszlomiklosik

View GitHub Profile
@rus-mihai
rus-mihai / getAllRepos.sh
Created October 27, 2015 15:49
clone all repos from a user from bitbucket while logging in with ssh
#Usage: getAllRepos.sh [username] [userwithrepos]
curl -u ${1} https://api.bitbucket.org/1.0/users/${2} > repoinfo
for repo_name in `grep -o \"slug[^,]*\" repoinfo | cut -f2 -d: | sed 's/\"//g'`
do
echo $repo_name
git clone ssh://git@bitbucket.org/${2}/$repo_name
done