①按照文件列表的顺序安装
.Net(Win7需要安装)(自行官网下载)
Git(自行官网下载)
Mercurial(自行官网下载)
SourceTreeSetup(自行官网下载)
②打开SourceTree,(过程中会可能检测不到Mercurial,请手动选择)
进行到“Registration”的步骤的时候放在一边
③打开以下路径
%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_xxxxxxxxxx\3.x.x.xx\ 路径下的 user.config 文件
⑦在<SourceTree.Properties.Settings>下面写入下面的代码 并保存
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
⑧关闭 SourceTree 再打开 SourceTree 就可以跳过注册/登录了
⑨工具->选项->SSH客户端选择OpenSSH 在SSH密钥这一栏选择 预先在git bash生成好的 id_rsa文件(此步骤位非必要步骤)