Create a new repository by copying an existing one

Gergana Tanova April 26, 2022

Hi, I wanted to create a new repository by cloning an existing one but it ended up in error because it is the URL that contains https// and passwords are not supported by bitbucket any more. How can I do this instead? Do i need to create an App password for this?

1 answer

1 accepted

0 votes
Answer accepted
Karthick S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2022

Hello @Gergana Tanova

 

Thank you for reaching out to Atlassian Community!

As per the Bitbucket communication, Atlassian account passwords are deprecated for Bitbucket API calls and HTTPS git activity (clone, push, pull and fetch), and are being replaced by App Passwords.

App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed.

You can check more information about the App Password with this documentation. If you are using HTTPS, you need to create an app password. 

Please note that the command expects the username, not the email ID. You can get the username from your personal settings of Bitbucket. 

Alternatively, you may try authenticating using SSH keys 

I hope this helps.

Regards,
Karthick S

Gergana Tanova April 26, 2022

Hi Karthick S,

Thank you for your answer! 

 

Regards,

Gergana Tanova

Gergana Tanova April 26, 2022

@Karthick S I am not sure how it works exactly. I created an app password and then filled in my username and password when creating the new repository but it still cannot copy it. I get error message. 

    remote: Invalid credentials

    Authentication failed for 'https://bitbucket.org/....

    Remote Git clone failed: <class 'bitbucket.apps.asyncx.tasks.ImportException'>: Command failed. Return value: 128

 

Do you have any idea why it could be so? 

/Gergana 

Gergana Tanova April 27, 2022

It was solved, you can disregard my last message. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events