1. Install [Git-2.31.0-64-bit], install [SourceTreeSetup-3.4.5]
2. Create the [accounts.json] file in the [ %LocalAppData%\Atlassian\SourceTree\ ] directory
[
{
"$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. Open %LocalAppData%\Atlassian and enter "SourceTree.exe_Url_iay..." (Note that this directory may be version-related, and the paths in different versions may not be exactly the same.)
Then enter the software version "3.4.5.0" directory
Open the user.config file and add it
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
4. Re-open Sourcetree and enter your account name and email address.