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

Move repository to another bitbucket repository


I have two repositories in my bitbucket account, say A (a.git) and another is (

How do I move the code in repository A to repository ? (This would help host a static website).


Thanks in advance.

1 answer

0 votes

Hi Gleto, I'm not sure I understand your question. If you want to move the code from a repo to the other, would a copy and paste suffice? Could you clone the repo and give it a different name?

Please elaborate a bit more so we can get a better idea of what you're trying to achieve and can help you.

Best regards! 


Thank you. I haven't tried the copy and paste, because I wasn't sure if the history would be copied as well.

I have a project (a folder named B) under repository and I am able to access it via I would like to move another project (folder A --> whose remote url is also into so I can access it via Would a copy paste suffice in this case?

Hi Gleto! Hi! The history is saved in the .git directory of your repository. I'm assuming you have this repo locally in your machine, so my advice would be import this code as a new repo in your Bitbucket Server account, so you get it as it is, including the history. For detailed steps, you can read Importing code from an existing project.

If you don't have this repo locally yet, you can clone it from Bitbucket following the instructions at Clone a repository.

Let us know if you have any more question :)

Best regards,


Thank you Ana. That helped!

Glad to hear that :)

Have a good day!


Suggest an answer

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

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,024 views 4 22
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