Bitbucket git credentials if signed up with Google

GitBitbucketGoogle Account

Git Problem Overview


I have an account on bitbucket.org that I created by signing up with my Google account. Now everytime I log in I just click "Log in with Google" and that's fine.

How can I access my repos from git command line? It requests me username and password. I have a username, but no password. How do I log in then?

Git Solutions


Solution 1 - Git

You should do a one-time setup of creating an "App password" in Bitbucket web UI with permissions to at least read your repositories and then use it in the command line.

How-to:

  1. Login to Bitbucket
  2. Click on your profile image on the right (now on the bottom left)
  3. Choose Bitbucket settings (now Personal settings)
  4. Under Access management section look for the App passwords option (https://bitbucket.org/account/settings/app-passwords/)
  5. Create an app password with permissions at least to Read under Repositories section. A password will be generated for you. Remember to save it, it will be shown only once!
  6. The username will be your Google username BitBucket username.

Solution 2 - Git

Solved:

  • Went on the log-in screen and clicked forgot my password.
  • I entered my Google account email and I received a reset link.
  • As you enter there a new password you'll have bitbucket id and password to use.

Sample:

git clone https://<bitbucket_id>@bitbucket.org/<repo>

Solution 3 - Git

It's March 2019, and I just did it this way:
  1. Access https://id.atlassian.com/login/resetpassword
  2. Fill your email and click "Send recovery link"
  3. You will receive an email, and this is where people mess it up. Don't click the Log in to my account button, instead, you want to click the small link bellow that says Alternatively, you can reset your password for your Atlassian account.
  4. Set a password as you normally would

Now try to run git commands on terminal.

It might ask you to do a two-step verification the first time, just follow the steps and you're done!

Solution 4 - Git

One way to skip this is by creating a specific app password variable.

  1. Settings
  2. App passwords
  3. Create app password

And you can use that generated password to access or to push commits from your terminal, when using a Google Account to sign in into Bitbucket.

Solution 5 - Git

You can setup SSH key authorization like described here - https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/.

Solution 6 - Git

Update as at September, 2019:

This whole process is now way easier than it used to be. It doesn't matter if your auth style is regular or Google-dependent, it works regardless. Follow these four easy steps:

  • Visit this link and enter your email.
  • Check your mail for the reactivation email and click the big blue button therein.
  • Change your password!

I hope this helps. Merry coding!

Solution 7 - Git

you don't have a bitbucket password because you log with google, but you can "reset" the password here https://bitbucket.org/account/password/reset/

you will receive an email to setup a new password and that's it.

Solution 8 - Git

Follow these steps:

  1. login to bitbucket
  2. Click on Personal Settings
  3. Click on Create App Password, here give permission to read and write and the login to GitHub desktop using the same password. Note: Take a screenshot of the password as you won't retrieve it again.

steps updated as on 13th July 2020 Thank You: Rahul Daksh

Solution 9 - Git

You can attach a "proper" Bitbucket account password to your account. Go to https://id.atlassian.com/manage/change-password (sign in using your Google account) and then enter a new password in both the old and new password boxes. Now you can use your email address and this new password to access your account on the command line.

Note: App passwords are the official way of doing this (per @Christian Tingino's answer), but IMO they don't work very nicely. No way of changing the password, and they are big unwieldly things to type into the command line.

Solution 10 - Git

The correct solution I guess is as follows:

First lot out from the account. Then click in "can't login". After that you will be able to recover your email. So, you will get recovery link and click on that email and set new password.

Solution 11 - Git

I found this while reading the docs:

This image... Doesn't know whether it works and you have to enter your Google password!

Link to this tutorial

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAlexView Question on Stackoverflow
Solution 1 - Gitctrl-zView Answer on Stackoverflow
Solution 2 - GitAlexView Answer on Stackoverflow
Solution 3 - GitLucas BustamanteView Answer on Stackoverflow
Solution 4 - GitCrisoforo GasparView Answer on Stackoverflow
Solution 5 - Gitvodolaz095View Answer on Stackoverflow
Solution 6 - GitTaslim OseniView Answer on Stackoverflow
Solution 7 - GitCristian SepulvedaView Answer on Stackoverflow
Solution 8 - GitRahul DakshView Answer on Stackoverflow
Solution 9 - GitHughHughTeotlView Answer on Stackoverflow
Solution 10 - GitJalil Nourmohammadi KhiarakView Answer on Stackoverflow
Solution 11 - GitNawaminiView Answer on Stackoverflow