Fixing SourceTree Credentials on Mac After Password Change

This happens every time I update my network password (as required every 60 days). It wasn’t until the third time that I made a note of what to do, and the fourth time where I posted it here so I can find it! I do not use a Mac regularly and freely admit I do not know the reason behind all of the steps (though I do for some, and won’t say which). I will say these steps worked consistently for the last 4 updates:

Log out of BitBucket from the browser

Do a full shut down of Source Tree

Back up and delete ~/Library/Application Support/SourceTree:

cd ~/Library/"Application Support"
mv SourceTree SourceTree.bak

Log in through the browser. Hopefully prompted with Captcha. May take a few tries (more consistent with Chrome than Safari).

Check something out through browser and enter new credentials when prompted. Remember to uncheck save credentials so it will use OAuth.

And yes, I know that this is unnecessary if using the command line. I like the Source Tree UI for managing conflicts and researching who made the change in the source that is currently driving me nuts 🙂

Facebooktwitterredditlinkedinmail
© Scott S. Nelson

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.