1、 下载Microsoft.NET Framework
官网网址:
https://www.microsoft.com/net/download/dotnet-framework-runtime/net472?utm_source=getdotnet&utm_medium=referral
点击安装点同意并继续:
注意:安装完成以后要重启计算机!!!!
重启以后需点击SourceTreeSetup-2.6.10.exe运行:
需要注册或者登录:
如果有条件的可以翻墙的就按照上面的步骤来就可以了,若是不能的就要绕过这步。将下面的一串串放进我的电脑的地址栏,打开sourcetree的文件夹:
%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
}
]
保存文件
然后再点击他:
就会出现一个界面(这里我忘记截图了):
按我不想使用Mercurial就好了(一般是最后一个选项)
安装成功啦!!~
成功的长这样: