Create
cancel
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

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

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

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

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

thanks

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
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,804 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