Re-enter account and password whenever I push or pull from git server after upgrade sourcetree2.5

Before sourceTree 2.3.1 in OSX Sierra ,it's very good at anything. But when i upgrade to the newlest 2.5.3 , it's my hell. Everytime , i need to push or pull from git, sourceTree ask me to enter account & password even i use the remember it in keychain option in the dialog. So please help me to fix this problem. thank you so so much to everybody.

1 answer

0 vote

Hi! Are you using SSH or HTTPS?

If you're using SSH, can you run this command to see which key is your SSH agent offering, whenever you get this error again?

ssh-add -L

There seems to be a known issue with MacOS Sierra not rememebering SSH keys after rebooting that might be affecting you, you can see it at MacOs Sierra doesn't remember SSH keys between reboots.

If you're using HTTPS, can you check that the URL you're using as the remote includes the username (so it's something like https://user@bitbucket.org/owner/repo). When asked to log in SourceTree tries to load previously saved passwords, but it needs a username and a host to be unambiguous. If your remote URL has no username specified, ST uses the default one (see Tools > Options > Authentication) and tries to use that default user name and saved password, if present. If those credentials don't give you access to the repo you'll be given a login prompt instead.

If the above doesn't work, can you try using the command line and see if you get any error?

Let us know!

Ana

I uses SSH URL for git

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

432 views 0 1
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