Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How we can import GCP google cloud source existing repo to my bit bucket repository

Deleted user November 28, 2023

We have existing private Google cloud source repository and now we want to import same repository to my Bitbucket repository.

Kindly guide us how we can do the same

1 answer

1 accepted

1 vote
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 29, 2023

Hi Monalisa,

If you'd like to import a repository from GCP, you can do so by following the steps below:

  1. Create a new, empty repository on Bitbucket Cloud
  2. Clone the repository that you wish to import to Bitbucket from the Google Cloud platform
  3. Run the following command on your local clone of the Google Cloud repository and replace the username/workspaceID/repository name with actual values that relate to Bitbucket Cloud (without the <>):
    git remote set-url origin https://<YourUsername>@bitbucket.org/<WorkspaceID>/<repositoryName>.git
  4. Run git push origin on the local clone of your repository
  5. The repository should then be available on Bitbucket

NOTE: Our repository import tool does not formally support GCP url's, however, the above process is identical to what is performed by the repository import tool. This means that only core repository content will be transferred over, any metadata such as PR's and user access settings will need to be manually created

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Deleted user November 30, 2023

Thanks for providing valuable input. It helps us.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events