Unable to clone remote repo - Invalid credentials error

Bose Muthu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 28, 2024

Hi, I have successfully created Atlassian account using my google credentials. while installing Source Tree in my windows machine, I have selected Bitbucket while registering.

It redirected to my bitbucket account , then i selected my google account and able to register successfully. 

Then I have attempted to clone my remote repository and getting below error

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://username@bitbucket.org/**-***/**-***-api.git
Error: remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/**-***/**-***-api.git/'


I have verified the credentials from Tools -> Options -> Authentication. It looks good. Even I deleted and added the account again. It looks good. 


1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2024

Hi @Bose Muthu and welcome to the community!

We have deprecated the use of account passwords for Git over HTTPS and API:

Your account's password can be used only for logging in to https://bitbucket.org/ from browser.

If you want to clone, pull, or push to a repo with basic authentication over HTTPS, you can generate an app password for your account and use that instead of a password (along with your Bitbucket username that can be found here https://bitbucket.org/account/settings/):

The Atlassian account's password or your Google account's password won't work.

Just a heads up, I removed the username from your post to protect your privacy.

Please feel free to reach out if you have any questions.

Kind regards,

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events