How to Clone and Create Existing Repo on Bitbucket itself ?

This question is in reference to Atlassian Documentation: Clone a repository

How to Clone and Create new Repo from Existing Repo on Bitbucket itself ?

2 answers

I do not think so there is a way as out of box feature.

You write script to do it, which basically follows below steps

 

Assume u want clone repo http://user_name@localhost:7990/scm/dem/test.git

create empty repo manually say ex: http://user_name@localhost:7990/scm/dem/test2.git

 

Then follow below steps:

 

#############################################

cd /tmp/

git clone http://user_name@localhost:7990/scm/dem/test.git

cd test

git init

git add -all

git commit -m "Initial Commit"

git remote add origin http://user_name@localhost:7990/scm/dem/test2.git

git push -u origin master

###############################################

 

for your reference

https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html

 

 

 

If you're trying to clone a repo that is already on Bitbucket, you can fork it

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,216 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you