1.首先,安装完 SourceTree 以后先运行一次,弹出初始化登录页面后退出。
2.打开 我的电脑,在最上方的地址栏直接输入以下地址:
%LocalAppData%\Atlassian\SourceTree\
3.在这个目录下新建一个名为 accounts.json 的文件。
4.使用 文本文档 打开这个文件,将以下内容复制到其中后保存。
[ {
"$id": "1", "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity", "Authenticate": true, "HostInstance":
{ "$id": "2", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount", "Host":
{ "$id": "3", "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount", "Id": "atlassian account"
}, "BaseUrl": "https://id.atlassian.com/"
}, "Credentials": { "$id": "4", "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account", "Username": "", "Email": null
}, "IsDefault": false
} ]