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

Cloning from terminal - Invalid password on Ubuntu

Hi, I have a problem cloning repository on Ubuntu from Terminal. The reason is error:  remote: Invalid username or password.

I am Using Ubuntu 18.04.3, and I wand to use Terminal or IDE for pull/push.

Is this possible?

I've done following to solve the issue, but it didn't help:

- reset password on gmail
- upgrade git to 2.24.0

Thank you in advance for answers.

1 answer

1 accepted

0 votes
Answer accepted

Hello @Haris Berbic,

Welcome to the Community!

When you use Google to log into Bitbucket, you can't use your Google credentials to clone/push to repositories. You have two options here:

  • set up an SSH key and use SSH transport for Git. The clone URL suggested by Bitbucket will default to SSH transport as soon as you register a key with Bitbucket (you can always select the HTTPS version in the dropdown).
  • create an app password and use it with HTTPS transport.

Hope this helps. Let me know if you have any questions.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,869 views 0 7
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