问题:安装sourcetree后总是在授权登录时卡住。现设置免密登录
步骤:
1,进入sourcetree安装目录。或在计算机的目录栏里输入: %LocalAppData%\Atlassian\SourceTree\即可进 入 sourcetree指定目录
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": "", "Email": null }, "IsDefault": false } ]
3, 重启sourcetree,已经可以进入主窗口了