Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket git credentials if signed up with Google

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?

like image 351
Alex Avatar asked Jan 26 '16 07:01

Alex


People also ask

What is my Bitbucket username and password?

On the sidebar, click on the Profile picture > View profile. Then on the sidebar click on "Settings" and you will be able to find your username.

How do I add credentials to Bitbucket credential Manager?

Go to Control Panel - Credential Manager - Manage Windows Credentials. Find the credentials for @bitbucket.org. Choose "Edit" and change the password for them to the app password.


2 Answers

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.
like image 185
ctrl-z Avatar answered Oct 01 '22 12:10

ctrl-z


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> 
like image 31
Alex Avatar answered Oct 01 '22 11:10

Alex