一、sourceTree舊版本免登錄
1.安裝
點擊安裝程序安裝sourceTree
2.修改文件
輸入 %LocalAppData%\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
}
]
3.重新安裝即可
二、sourceTree3.3.8安裝免登錄
參考 http://www.manongjc.com/detail/15-pkitvyqcstbghrh.html
1.安裝
點擊安裝程序安裝sourceTree
2.修改文件
輸入 %LocalAppData%\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
}
]
打開 %LocalAppData%\Atlassian,進入“SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef”(注該目錄可能和版本相關,不同版本的路徑可能不完全一樣。)
進入 3.3.8.3848 目錄, 打開user.config 加入這幾句話
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>