Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

want to clone all repository

Pietto Vasco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2020

Hi Team,

 

I want to clone my all repository by using bash. I have tried all the links but didn't succeed.
for reference https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Server-Rest-Api-Clone-all-repositories/qaq-p/626578

I have tried this as well.

curl -s -u "$ORG_USER:$ORG_PASS" https://api.bitbucket.org/2.0/repositories/?role=member | jq -r '.values[] | {slug:.slug, links:.links.clone[] } | select(.links.name=="ssh") | "git clone \(.links.href) \(.slug)-cloud"' >> clone-repos.sh

So please guide me is there any way to clone all the repos.?

1 answer

0 votes
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2020

Here is the documentation for cloning a single Bitbucket repository: https://confluence.atlassian.com/bitbucket/clone-a-repository-223217891.html

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events