The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Import git repositoy using git or ssh

Henkie84
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!
September 27, 2016

Hello,

We have installed the Bitbucket server and we want to import an existing git repository. Our git repository is installed on our own servers using the git protocol. To clone the project we use git://ourserver/project.git.

When we want to link our git repository to Bitbucket we must provide an url like HTTP(s)://. But we don't use the HTTP(s) protocol because we have installed everything locally. We can change it so that we can use ssh but this is still invalid.

Is it possible to import a local git repositoy using the git protocol?

 

Import.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
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 Champions.
September 28, 2016

You should be able to just create a new empty repo on Bitbucket.

Then go to somewhere where you have the repo you want to import - it can just be a clone - and add the URL for that repo as a new remote, and then push to that remote

git remote add bitbucket <url>
git push bitbucket
TAGS
AUG Leaders

Atlassian Community Events