1:下载地址:https://www.sourcetreeapp.com/
2:双击:exe文件
弹出登录界面,然后关闭:
用文件管理器打开 %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
}
]
然后再次启动sourceTree。
若还是不行在修改如下文件:
C:\Users\****\AppData\Local\Atlassian\SourceTree.exe_Url_4yhnlbzlb1exh3sccs0yupqd0h2tfku3\3.3.8.3848夹下的
user.config文件,添加一下内容
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>
然后重启就好了,
注:此篇博客基本上是复制于 : https://blog.csdn.net/RedaTao/article/details/104171068
这里只是给自己做下记录,也希望帮到其他人,若有不满,侵删。