一、進入文件夾 %LocalAppData%\Atlassian\SourceTree\json
找到SourceTree的目錄blog
二、裏面添加一個json文件 accounts.json 內容以下:it
[
{
"$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
}
]io
三、而後返回上一層找到文件user.config,在裏面<setting>標籤同級添加以下代碼,放在同級最前面:im
<setting name="AgreedToEULA" serializeAs="String">img
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>文件
四、重啓SourceTreemail
會出現安裝的,點第一個便可。標籤