Missed Team ’24? Catch up on announcements here.

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

Error: Logon failed, use ctrl+c to cancel basic credential prompt.

Pradip Thigale November 23, 2020

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote url
Output:
Error: Logon failed, use ctrl+c to cancel basic credential prompt.

 

6 answers

17 votes
Tarun Kumar March 8, 2022

1. Go to Tools in Sourcetree > Options >Authentication

2. Delete account from there.

3. Then click On Add button and refresh OAuth Token 

4. After success ... Get On Your Work 

buzzr March 9, 2022

Save my  life!!!!

Like Tarun Kumar likes this
adrshmk March 10, 2022

Thanks 👏

Like Tarun Kumar likes this
mmehrotra March 12, 2022

Thanks 

Like Tarun Kumar likes this
CristianMutuc March 14, 2022

Thanks :)

Like Tarun Kumar likes this
Stanislav Gromyko March 22, 2022

tnx so much

Like Tarun Kumar likes this
CongHuan82 May 3, 2022

thanks it works

Orkimedes May 17, 2022

Thank you! Refresh helped

John Barry May 23, 2022

thank you, thank you, thank you, thank you, thank you, ...

Owen Franke June 1, 2022

Thank you!!

Cristina Borg July 1, 2022

Thanks!

Carlos Rodríguez Moreno October 4, 2022

huge!

magonzalezaGit April 11, 2023

I love you !!!!!

Va1iant August 2, 2023

Thanks man, you're a life savior

6 votes
thilllon February 8, 2021

I had a same problem on Windows 10.

None of those answers did not work for me. I finally found that git version could be the problem. After upgrade git version I have no more authentication issue.

$ git update-git-for-windows

 

 

thospol hamna February 10, 2021

thanks

auttonomous October 1, 2021

this worked for me thank you

Rama Kali October 28, 2021

I understood some bug issues. A very nice short answer.. Thanks..

Aisha Bukar November 22, 2021

This saved my life. Thank you

Héctor Liceaga April 11, 2022

Thanks!!! I only had to update!!!

Elizabeth Abraham November 29, 2022

thanks! saved my life!

constant-null July 14, 2023

I came from the future to say thank you. You are lifesaver

Bariyo Derrick October 6, 2023

started using bitbucket today and I am here to say Thank you. 
All I needed was to update git 

4 votes
Glen R March 12, 2022

I resolved this after I did the following.

  1. Sourcetree > Tools > Options > Authentication.
  2. Click on the account listed,
  3. Click 'Edit'
  4. Under Credentials, click Refresh OAuth Token.
Gary C Knudsen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

This worked - Thanks for sharing. 

1 vote
shobhitpundir07 March 6, 2022

If you are still getting this error for Visual Studio 2019 and updating GCM is not working then please use app password instead of your regular BitBucket login password as of Mar 1 2022 BitBucket stopped using regular password for API based authentication. See reference

https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231

0 votes
Shad Uadiale January 27, 2022

I followed @Theodora Boudale instructions above, but went a step further by authorizing adding my Github account.

Here's what I did -- Click on "authentication" >> "Add" >> set "Host service" to Github from the dropdown list >> "Preferred protocol" HTTPS >> "Authentication" to OAuth, enter you Github user name, it'll prompt you for password and would redirect you to a github page to login, and then it will show a page with Source tree and github logos with a list of access permission, and a CTA to confirm.

Hopefully it works for anyone seeking some assistance! 

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 25, 2020

Hi Pradip,

I would like to ask for some additional information so we can better help you:

1. Are you using a Git GUI client when you receive this error? If so, could you please let us know which one?

2. Is the repo you are working on hosted in Bitbucket Cloud (https://bitbucket.org/) or in Bitbucket Server (self-hosted instance)?

3. What operation are you doing when you get this error?

4. Is there any additional output mentioning an authentication issue, incorrect password, or anything similar?

5. What is the operating system on the machine you are working when you get this error?

Kind regards,
Theodora

Ronny Alvarado November 26, 2020

sourcetree.png
Hi Theodora 
i have the same issue when i try to push. Sourcetree ask me for the credentials but always show same logon failed


Like John Stanley likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 27, 2020

Hi @Ronny Alvarado ,

This issue indeed seems to be related to authentication. I believe that SourceTree may be using incorrect stored credentials.

My suggestions are:

1. Clear any stored credentials from SourceTree for https://github.com/

On Windows
  a. On the tool bar click "Tools" >> click "Options"
  b. On the "Options" window click "Authentication" tab
  c. Identify stored credentials to GitHub and remove them.

On Mac
  a. Click Sourcetree > Preferences >> Accounts
  b. On Accounts tab, remove stored credentials.

2. Additionally, clear any stored credentials for https://github.com/ from Windows Credential Manager (if you're on Windows) or from Keychain Access (if you are on Mac).

Then try to pull or push again. Please feel free to let me know how it goes.

Kind regards,
Theodora

Like spryce likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events