SourceTree, Error Logon failed, use ctrl+c to cancel basic credential prompt
Asked Answered
F

8

21

I'm getting below error while cloning a repo through Sourcetree.

enter image description here

I'm able to login directly through bitbucket.org but not through Sourcetree. Let me know how this issue needs to be fixed.

SourceTree version: 3.3.9

TIA

Ferriferous answered 27/8, 2020 at 12:1 Comment(0)
D
65

Let's try this:

  1. Tools -> Options -> Authentication
  2. Click "Edit" on Your Account
  3. Click "Refresh OAuth Token"

It works for me :)

Damp answered 28/12, 2020 at 16:38 Comment(3)
Thanks a lot. It happened to me when I connected to another network.Angular
This didn't work until after I deleted the two year old github entry in Windows Credential Manager. Then it worked like, well, not a charm, better than those.Wrest
this didn't work for me :(Coercive
B
4

I found out that the reason why SourceTree cannot authorize our GitHub account is that source tree is using the old git version so that it doesn't authorize our account through web but through its own application which is not permitted by Git. Git Notification

Solution: First of all, you must know where your SourceTree stores your local datas (which is also the local git). You go to Tools > Options. Choose Git tab, and then choose Embeded in Git version which will tell you the path to their local datas. Mine is "C:\Users\as\AppData\Local\Atlassian". Git Local path

And then you need to delete all the folder in the Atlassian and then uninstall SourceTree. After all, you install new version of Git from this: https://gitforwindows.org/ and install new SourceTree from this: https://www.sourcetreeapp.com/

And then you just need to open your repository from the Add button, and try to push again. SourceTree

They will appear the web-authorization for you to sign in. And after all that, it works. Git Authentication

Billiards answered 11/12, 2020 at 9:3 Comment(1)
Just as a FYI, no need to re install sourceTree after pressing "Update Embedded" button. Worked like a charm! Thank you sir.Koblick
O
2

Authenticate with OAuth instead of Basic.

Oppressive answered 19/12, 2020 at 4:1 Comment(0)
M
2

Tools/Options/Authentication, delete your github account, add again. Works for me.

Marchpane answered 22/4, 2021 at 17:45 Comment(0)
A
1

Tools> Options> Authentication> Edit already existing account - Enter password and save again. This might refresh your password in your SourceTree

Anderton answered 11/12, 2020 at 9:10 Comment(0)
L
1

This is still relevant!

I solve it by updating SourceeTree.

  1. Remove Sourcetree from PC
  2. Download the new version from the official site: click
  3. After open, on the top right corner press the yellow flag to update, then click "restart".
  4. Go to Tools => Settings => GIT => Update Embedded.

For version 3.4.0 I have Embedded v2.29.2.

Then press Fetch, for example. Select "Use no helper" in a popup window. Also, check "don't ask again". Enter email/login and password into the login popup.

Success for me :)

Lennyleno answered 23/12, 2020 at 10:34 Comment(0)
C
0

I had this exact issue. I opened the project in Visual Studio 2019 and attempted the same request as before. This prompted me for the same username and password, but also allowed me to authorize using the website. I selected this and was able to go back into SourceTree and continue the clone.

Cantle answered 2/12, 2020 at 17:48 Comment(0)
T
0

you can turn off the option to automatically detect proxy settings.

Threepiece answered 6/5 at 8:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.