Remove all other authentication identifiers in the Authentication section of sourcetree except the git hub.
Then click "Add" or go to the "Hosting Repositories" (to quickly check whether it is successful) and click "Change Accounts".
In the credentials, select OAuth and select the update token. You will be redirected to your registered bitbucket website and click on βGrant Accessβ.
Now go to your new account in the "Authentication" section of sourcetree and select "Set as default."
Done. You should now see all your repositories in the hosted repositories. It shows a login error if it failed.
source share