How to work with two different BitBucket accounts in SourceTree

前端 未结 9 432
天命终不由人
天命终不由人 2021-02-01 13:00

I have two different bitbucket accounts set up. One is for work projects and one is for personal use. In BitBucket I have set up a repository in each of the accounts for diffe

9条回答
  •  日久生厌
    2021-02-01 13:36

    on windows the tool has a bug no matter what I've tried from within the tool it was always using a previews git account which was cached somewhere... so I searched all files where sourcetree was installed and I found a file C:\Users\WIDNOWS_USER\AppData\Local\Atlassian\SourceTree\userhosts there I had cached the old git user/account name and it was driving me nuts in the app. I updated this file, deleted the old account name and added the new one, restarted the tool and it started to work fine. there's also a file C:\Users\WIDNOWS_USER\AppData\Local\Atlassian\SourceTree\passwd check that one too and if your cached account with passwd is there too clean it out, do not add here anything, the app will do it first time when you enter your password for the new acccount

提交回复
热议问题