This script helps us to clone multiple repos in a projects at once.
Prerequisites
-
We will need to make sure we have setup ssh key of destination server or client with Bitbucket account. https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
-
Check and change the URL of the Project on the curl command.
-
Change the grep name and other piped command according to the repo names.
-
You need to have account in our BitBucket.
-
Clone this repo to destination server or client.
After making sure all prerequisites are met, please run clone.all.hosted.bitbucket.sh. This script will request Bitbucket username and folder location in where you would like to clone the repos.