Source tree keeps asking for password when execute pull/push commond

When excute git pull/push commond, the source tree keeps asking for my password as the following picture showed, but in the terminal, the git pull/push commond works well and dose not asking for the password, could anyone tell me why, many thanks!

5 answers

Is it possible that your terminal is configured to use a keypair, but SourceTree isn't?

Hey rui,

Looks like your URL format might be wrong. Could you post a redacted version in its current format?

Thanks in advance

I had the same problem and basically just you need to delete the passwords in your keychain.

After that, try to add a repository and click in the icon in the right (world icon)

You will be asket to insert your password and login again...

That's it


I'm having the exact same issue.  I've tried every solution people have posted on the internet:

  • delete keychain pw
  • change the repo url to include the username (
  • Go to Repository > Repository Settings > Remotes — click the repo path and hit edit, add your username there so Keychain can find the appropriate pw.
  • In the repo list view, go to Accounts and set the pw there

NOTHING works.  Every time I fetch, push, pull, whatever, it still asks me for my damn password. Every. Single. Time.  The Store Password In Keychain checkbox does nothing, and I'm supplying my username all over the place, so keychain needing that bit of info ahead of time in order to work is also not the solution.  This problem never happened until I recently did an update.  According to the About info, I'm running version 2.4 (88) now.  So, whatever that upgrade did must've introduced this problem.  This is REALLY annoying. 

Did you ever resolve this? I'm having this issue now as well.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

122 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you