I have some old code in a project that I want to copy to a new project. The old code will have an EOL soon but I want to use it as the basis for a new project. In the new project It will be the basis of new code. So cut the revision history and start with new history. I have read various articles in how to do this but none of them work. This one: https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html seems to be the most thorough but there is no Import Repository button on my screen as it suggests. So I tried the other options, but to no avail. I tried to Pull with the --bare option and it pulls but I cannot push it to a new repository. So is there an issue with the version (free version) I'm using? I'm not that skilled with git and it would be best if there were options in the client version to do this.
thanks
Hi Gary, welcome to the Community!
Assuming that you're using Bitbucket Cloud (as that's how you labelled this question) the free and paid version provide the same functionalities, the only difference is the number of users you can grant access to your repos (max. 5 users for free accounts). There are also some Premium features that you need to pay for, but this is not your case :)
The article you linked refers to Bitbucket Server, can you confirm if you're using Server or Cloud? The instructions differ from one platform to the other.
Individual Bitbucket Cloud accounts don't have projects, unless you're using a Team account. If you need to import a repository, you can do so by following the instructions at Import a repository.
If you just need a file you can copy it locally from the old repo to the new one, and then push the changes to your new repo in Bitbucket.
If you have any questions, please let us know!
Kind regards,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.