The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events