一、 在路径C:\****\AppData\Local\Atlassian\SourceTree
下创建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
}
]
二、在路径C:\****\AppData\Local\Atlassian\SourceTree.exe_Url_rvhjoyheuswglmomkjmmedhk4lsdtqh0\3.0.12.2543
下(不同版本可能路径不同),找到文件[user.config],在第4行<SourceTree.Properties.Settings>
下插入6行代码
<setting name="FileStatusFilter" serializeAs="String">
<value>65278</value>
</setting>
<setting name="DiffContext" serializeAs="String">
<value>3</value>
</setting>
<setting name="DiffWhiteSpaceIgnored" serializeAs="String">
<value>False</value>
</setting>