ITfooter 2020-03-27
1:找到安装目录下的文件%LocalAppData%\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": "", "Email": null }, "IsDefault": false } ]
3:找到改文件%LocalAppData%\Atlassian\SourceTree.exe_Url_xxxxxxxxxx\3.1.2.3027\user.config,并添加如下内容:
<setting name="AgreedToEULAVersion" serializeAs="String"> <value>20160201</value> </setting>
4:打开重启即可。具体操作步骤引用:https://my.oschina.net/u/868789/blog/2208147。