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

Prompted for login again and again...

Edited

I successfully added my Bitbucket account in SourceTree. It correctly shows my repository in the "remote" tab, but when I try to clone it I am prompted again and again for username and password and it is never actually cloned.

screenshot.jpg

What can I do?

Btw: it all works fine when using git from the commmandline.

7 answers

1 accepted

4 votes
Answer accepted

Do yourself a favor and ditch Altassian.

Altassian , Sourcetree , and Github are a f***ing joke . I only use them because my work uses it .

Lots of inconsistency with the way their passwords work. Seems credentials are stored on different databases there and not in synch with each other. 

The best answer to this problem I've found so far is simple: don't use sourcetree.

In SourceTree, I went to Tools > Options > Git > Git Version and clicked on Update Embedded. After that, worked fine.

Did it for me!  I also had to switch to use embedded git, as a while back another issue happened that I could only fix by using system git.

Seems like they really drop the ball on this authentication stuff.  periodically have similar issues, but fix changes each time.  Would be helpful if they at least gave a useful error message.

Here is some more information. When I fetch from the repository in source tree, I am prompted for the password, but it never accepts it. Here is the log:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://aktionariat@bitbucket.org/aktionariat/aktionariat.git/'

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://aktionariat@bitbucket.org/aktionariat/aktionariat.git/'

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://aktionariat@bitbucket.org/aktionariat/aktionariat.git/'

Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Invalid username or password
fatal: Authentication failed for 'https://aktionariat@bitbucket.org/aktionariat/aktionariat.git/'

Completed with errors, see above.

When I do the same from the commandline by entering "git fetch", I am first prompted to enter my password through a "Bitbucket login" window, which always fails. Then I am prompted for the password directly on the commandline, where it always works.

It would be great if anyone could help. Setting up ssh keys did not seem to help either.

Update your git to the latest version

Found the problem in https://stackoverflow.com/questions/64962533/logon-failed-use-ctrlc-to-cancel-basic-credential-prompt , just update git => (C:\> git update-git-for-windows). 

I have the same problem. 
The only difference is that my repository is on GitHub,

Such a shame that community still do not provide answer.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,719 views 4 12
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