原因:现在安装需要账户登录了才可以
1.在目录C:\Users\{user}\AppData\Local\Atlassian\SourceTree 下创建一个文件名为accounts.json(若没有这个路径注意打开隐藏文件查看,一般安装到一半就已经会生成这个文件夹)
2.accounts.json中写入
[ { "$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": "username@email.com" }, "IsDefault": false } ]