首先去官网下载最新的sourcetree安装包,点击打开下载地址。
下载完成后安装,等到他自启动开始提示你登录的时候,打开“我的电脑(此电脑)”,在最上边的输入栏输入%LocalAppData%\Atlassian\SourceTree\之后回车,会自动打开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