Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Clone and Create Existing Repo on Bitbucket itself ?

swapnaram June 27, 2016

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

0 votes
Tim Crall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2016

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

0 votes
SidduAngadi June 27, 2016

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

 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events