Prompted for login again and again...
Asked by Luzius Meisser:

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](https://community.atlassian.com/t5/image/serverpage/image-id/81617i2183050E7F788640/image-size/large?v=v2&px=999 "screenshot.jpg")

What can I do?

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


Answers:
author: pnisbett
body: 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.


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


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

comments: author: barneygarrood
body: 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.


author: Luzius Meisser
body: 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.


author: dimas_prasetya
body: Update your git to the latest version


author: dradkov
body: 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).


author: milosmih86
body: 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.


Tags: atl-gruland