Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

"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.

3 answers

1 accepted

17 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.

why is this such a story.................. application is dog slow, user interface doesnt lead you on the right track to anything, NOTHING WORKS, geez man. such a struggle to do ones job cuz i must use your software

so how to let  goolge could be credentials and than work 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events