Thursday, May 14, 2020

How To: Bitbucket and Sourcetree OAuth token refresh

Bitbucket, Atlassian's hosted GIT source control management repository, can use either a user id and password, or you can connect your user id to an oauth provider like Google.  My account is linked via OAuth.  But occasionally, and I have not tracked down the cause, my local machine's connection to that OAuth process fails.

I admit I am a bit "Windows, Icons, Mouse and Pointer (WIMP) impaired" when it comes to using get command line, so my tool of preference is Sourcetree.  So when the OAuth connection fails, I have to rediscover where the settings is for refreshing the connection.  Therefore I am writing it down for myself and anyone else who needs to refresh OAuth in Bitbucket or SourceTree.


  1. In the Sourcetree application, from the menu bar, select Tools --> Options
    Tools --> Optoins
  2. In the options Options dialog, select the "Authentication" tab
    Authentication tab
  3. Click to focus on the account, it will expand showing edit options, select "Edit"
    Click account, click "Edit"
  4. Click the "Refresh OAuth Token"
    "Refresh OAuth Token"