Keep Getting Prompted for Password when 'Save to Keychain' is Selected

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

The password prompt appears despite the Save to Keychain option being selected.

Cause

Looking up a password in the keychain requires that the username is known in advance. 

Resolution

Check whether your username is included in the URL, and if not, add it. The format will be something like:

https://username@host.com/path/to/repo

(info) If the 'username@' part is omitted, SourceTree will still attempt to look up your password using a default username, but this doesn't always work, especially if you use different usernames for the same host in different contexts. Therefore, to be sure you should always include the username in the URL of any repositories you need to authenticate to access.

Help us improve!

Unknown macro: {kbsurvey}

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.