Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Password not working for git. Using recently linked Atlassian account.

Maurice_Downes June 15, 2020

Logged into my Bitbucket account after not using it for a few years and authenticated through Google to come back to it. I was prompted to connect the earlier account to what I assume was a new one that Atlassian set up for me. The problem now is that when I get prompted for a password when I try to push code to Git and I use my previously saved Bitbucket password, I get an authentication error.

So basically, I'm just trying to figure out how I can log into Git from Terminal on my computer now. Should the old password still be working?

1 answer

1 accepted

1 vote
Answer accepted
marvin_collins June 20, 2020

if you are not able to login try resetting your password and use the new password to login in terminal. The best way is to use your SSH key to access your bitbucket with git from terminal

Maurice_Downes June 20, 2020

that’s what i figured. i’m going to try setting up an SSH key first.

thanks

Maurice_Downes June 20, 2020

ssh worked, but i also had to edit the .git/config file:

from:
[remote "origin"]
url = https://<username>@bitbucket.org/<username>/<repo>.git
...

to:
[remote "origin"]
url = git@bitbucket.org:<username>/<repo>.git
...

in case someone doesn't know why this is asking for a password even after you've added your ssh public key

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events