Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Existing Git repo on same server

Edited

Hi.

 

I have installed bitbucket server on my existing server that host our git repo and jenkins. 

Our git repo is located at /home/git/myrepo.git

How do I import that same repository into bitbucket on the same server ?  I don't want to clone, I just want to point bitbucket to look at that repo.

 

So to summarize I have on the same box :

/var/atlassian/application-data/bitbucket

/home/git/myrepo.git

And I want bitbucket to read the exsting git data. Our git is current accessed using ssh keys

1 answer

1 accepted

0 votes
Answer accepted

Hi Stephen,

You'll need to follow the instructions described here: https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html#Importingcodefromanexistingproject-Importcodeusingtheterminal

Cheers,

Christian

Premier Support Engineer

Atlassian

That is just pushing code to a new repository ?  

There is no way to use an existing repository ?  I am trying to avoid having to get all my team to push to a new repo.

Hi Stephen,

No, if you want Bitbucket Server to host a repository you will have create one in Bitbucket Server and push the contents of the existing repository to it.

Cheers,

Christian

Premier Support Engineer

Atlassian

Ok. Thanks for the help.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

118 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you