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!


Is it possible to copy/clone a repository within the workspace in Bit bucket cloud version??

Hello Team,

We want to copy/clone a repository to create a new one with the same existing code and branches. Is it possible to do so in Bit bucket cloud version?? 
If so please let me know the steps

Srikanth Vemuluri

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 14, 2023

Hello @Srikanth Vemuluri ,

Thank you for reaching out to the Community!

Yes, it's definitely possible to create a copy of your repository within the same workspace, and I would personally suggest using the Import repository feature. Importing a repository will essentially clone the source repository and save its content to a destination repository. If the source and destination repositories are in the same workspace, this can be considered as a "copy" repository operation.

To start the process of importing a repository you can follow the below steps :

  1. Access the workspace and in the top navigation bar click on Create > select Repository from the dropdown menu.

  2. Click Import repository (top right) from the Create a new repository page.

  3. Select the Source of the code you want to import.

  4. Provide the URL of the source repository (the repo to be copied) - e.g.<workspace>/<repo_slug>

  5. If the source repository is private you will need to check the option Requires authorization and provide the credentials for authentication. These credentials must have access to the repository.
    Username : your Bitbucket username (not the e-mail address). You can find the username under your account's personal settings.
    Password : you need to provide an App Password (not an account password) with the required privileges (for the import repository:read should be enough). Instructions on how to create an app password are outlined in this documentation
  6. Select the Workspace for the new repository.
  7. Select an existing Project or create a new one.
  8. Enter a Name for your new repository.

  9. Uncheck This is a private repository if you want the repository to be public.

  10. Expand Advanced settings and fill out the rest of the page if necessary.

  11. Press Import repository.

Once you click on Import repository bitbucket will internally clone the source repository and save it to a new repository under the workspace and project you have selected above. The source repository is left intact.

Hope that helps to address your questions! In case you run into any issues, please let us know.

Thank you, @Srikanth Vemuluri !

Patrik S

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events