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

"remote: Invalid username or password & fatal: Authentication failed" When Cloning into Repo

I just got set up with a managed account from a gmail account at work, I am trying to clone the initial repo to get started locally but when I do git clone and enter my password it says;

remote: Invalid username or password

fatal: Authentication failed...


I have logged in and out of my bitbucket account through the browser multiple times and I do have access to the repo. 

If someone could point me in the right direction that would be great as I have spent quite some time on this and none of the answers from the web are working.

2 answers

1 accepted

13 votes
Answer accepted
Ana Retamal Atlassian Team May 08, 2019

Hi Chris, welcome to the Community!

Your Google credentials will not work in this case, for the command line you need to create an App Password. To do so, go to<your-username>/app-passwords (remember to replace <your-username> with your actual username) and click on 'Create app password'. You can learn more about it at Bitbucket App passwords.

Let us know if this helped you :) 

Best regards,


Thank you so much Ana, that was it.

Hi Ana, My google credentials used to work perfectly fine until I changed the computer and attempted to clone from sourcetree on the new computer. The link in your response above is no longer active. Please advice me. thanks

Like Aidar likes this
Like hbutt likes this


Thanks Ana it worked 

Thanks Ana Retamal, It works. I made app password and it worked.

so how to let  goolge could be credentials and than work 

Suggest an answer

Log in or Sign up to answer
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,791 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