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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Can I import a local (no url address) git project into bitbucket?

Can I import a local (no url address) git project into bitbucket?

1 answer

1 vote

Hi Xavier,

I assume this means you're running a git server on your local machine and want to move that repository to Bitbucket?

If so, you cannot use Bitbucket's UI based import function (unless you're also running Bitbucket on the same machine, but I'm assuming this is not the case). 

But if you run the below commands on the machine running the git repo you want to move, the clone will give you a full history of the code (code, branches, tags) and the push command will then commit everything to your new target repository. These commands will NOT include meta data such as Pull Requests.


git clone --verbose --bare https://olduser@localhost/scm/OLDPROJECTNAME/oldreponame.git

git push --mirror https://newuser@newgitserver/scm/NEWPROJECTNAME/newreponame.git



Suggest an answer

Log in or Sign up to answer

Atlassian Community Events