SourceTree安装包下载地址:
链接: https://pan.baidu.com/s/1rOPQkfNqvLGcIeZNw0aAjw 密码: 42us
nodev6.9.0 和git
链接: https://pan.baidu.com/s/1mRo0oQRmAxCoFH_7t46cXg 密码: hydj 然后就一波安装,先不要忙点启动,或者启动了也先关掉,进行下面这步操作: 找到:%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 } ]
注意: Windows 系统文件后缀是默认隐藏的,需要先显示文件的后缀名,然后随便新建一个 文本文档 ,将文件全名改为 accounts.json 即可。
可以参考地址:https://www.jianshu.com/p/3478e2a214a1