Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Error when import / add a repository from one workspace to another in Bitbucket?

Edited

We need to clone repository from another company's. Since their repository isn't public one, I can't use "Add Existing Repository" feature.

So, here is what we did

1. I was invited to the other company's Bitbucket. I only gave my Bitbucket's username and email address to the other company.

2. One additional workspace shown on my Bitbucket workspace list, say this workspace's name is WKSP_A

3. I want to clone repo from WKSP_A to our existing WKSP_OWN. So I am at the project of WKSP_OWN

    a. click on "+" on left panel -> Import Repository

    b. Give the URL from repo at WKSP_A. The URL was copied from WKSP_A repo with syntax https://<my username>@bitbucket.org/<WKSP_A>/<repo name>.git

    c. Fill in my current workspace name WKSP_OWN, project name and repo name that I want in my WKSP_OWN

    d. click on "Import repository", below is the error msg. I am attaching the screenshot of the error msg as well.

(below is text version)

Importing repository

We're getting things warm and cozy for your code.

Your import has failed. For more information, check the log below. You can also try your import again.

  1. 16:31:39 git import for: https://bitbucket.org/WKSP_A/<repo_name>.git
  2. 16:31:39 Cloning https://bitbucket.org/WKSP_A/<repo_name>.git...
  3. 16:31:39 Cloning into bare repository '<company bitbucket name>/androidapp'...
  4. 16:31:39 remote: Invalid username or password
  5. 16:31:39 fatal: Authentication failed for 'https://<my username on Bitbucket>@bitbucket.org/WKSP_A/<repo_name>.git/'
  6. 16:31:39 Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128

1 answer

0 votes
Tyler T Atlassian Team Sep 03, 2020

Are you trying to fork the repository or work directly on the repository?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,827 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you