Skip to content

Commit 64c346c

Browse files
committed
Add clone all bitbucket script
1 parent 1aace9f commit 64c346c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cloneAllBitbucket.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
echo "cloneAllBitbucket.sh username targetuserorteam"
4+
USER=$1; curl --user ${USER} https://api.bitbucket.org/2.0/repositories/$2 | grep -o '"ssh:[^ ,]\+' | xargs -L1 git clone

0 commit comments

Comments
 (0)