You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
Thanks,
Srikanth Vemuluri
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 :
Access the workspace and in the top navigation bar click on Create > select Repository from the dropdown menu.
Click Import repository (top right) from the Create a new repository page.
Select the Source of the code you want to import.
Provide the URL of the source repository (the repo to be copied) - e.g. https://bitbucket.org/<workspace>/<repo_slug>
Enter a Name for your new repository.
Uncheck This is a private repository if you want the repository to be public.
Expand Advanced settings and fill out the rest of the page if necessary.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.