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

Is there a way for me to easily use a local git repository to create one in bitbucket?

Dave Mackey May 25, 2017

I have a local git repository, I see that I can move other "hosted" repositories to Bitbucket, but how do I do it with one only on my local hard drive?

1 answer

1 accepted

2 votes
Answer accepted
Johannes Kilian May 29, 2017

You simply create an empty repository with the desired name on the bitbucket server. This empty repository has an URL to be addressed (for example using either git- or http(s)-protocol)

After having this URL you go to your local repository and add this newly created bitbucket-repository via commandline (or within the GUI of your flavor)  as a remote repository, for example:

git remote add origin ***YOUR_URL***

Then you can make a simple:

git push origin master

That's it ...

Or did I misunderstood your question?

Dave Mackey July 4, 2017

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events