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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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

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


2 answers

0 votes

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

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

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

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

Like spryce likes this
0 votes

I had a same problem on WIndows 10.

None of those fixing credential stuff did not work for me and I finally found that git version could be the problem. After upgrade git version I have no more auth issue.

$ git update-git-for-windows


Suggest an answer

Log in or Sign up to answer
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 ...

2,567 views 1 9
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