Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to prevent multiple authentication attempts?


My company has a security policy that blocks an account after more than 3 failed login attempts. 

I have a lot of repositories that were using the same old stored credentials, and now that I've changed my password if I attempt a pull before changing the credentials for the repository I get my account blocked because Sourcetree always attempts to authenticate 4 times. 

Image 2019-06-13 at 2.02.59 AM.png

How I can set Sourcetree to attempt only once?


1 answer

1 vote
bgannin Atlassian Team Jun 13, 2019

Hi @renecum_cignium,

You can't change this directly. I recommend changing your authentication settings for each repository by deleting the Keychain entries and letting Git prompt you again for them. Or simply cloning fresh if there are no local changes. Hope that helps a bit.

Brian Ganninger
Principal Developer, Sourcetree 

Hi @bgannin thanks for your reply but this doesn't help much. I have about 45 repositories, and even after I have deleted my keychain credentials some of the attempt to authenticate when I open them in Sourcetree and my account is blocked again.

How can I add a feature request to fix this?, This is not the first time that I need to change my password, every three months I got the same problem since we are forced to change the password once every three months. 

bgannin Atlassian Team Jun 14, 2019

Authentication as a whole is on the list for review. You can log a feature request for "migrating credentials for all repositories" here.

Has this been addressed yet? I am in the same situation at my company... three login attempts and I'm hosed.

The solution sounds simple enough in theory, but gets complicated in a hurry when using a number of different machines (like I do). If I forget that one of the machines has not been updated with the new password, then the next time I use it... BAM! And now I need to update all my repos on this machine with the new password, and also the repos on all of my  other machines as well.

jan.paija I'm New Here Jul 29, 2021

This needs to be addressed. Using AD authentication, it can't just keep spewing failing login attempts, as this locks accounts quickly!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,021 views 5 13
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