avatar

SourceTree

SourceTree

Git客户端

运行平台:Windows,macOS

下载地址:https://www.sourcetreeapp.com

PS: 在Windows下安装提示需要注册,注册完成以后,经常卡在这个环节进行不下去了,建议下载3.1.3版本的,然后使用以下方法跳过注册.

下载链接: https://pan.baidu.com/s/1cWX9Lsn253tnbGYFsCV6Cw

提取码: f28x

下载并执行SourceTreeSetup-3.1.3.exe,会进入登录或注册bitbucket的界面

打开 %LocalAppData%\Atlassian目录,接着进入SourceTree目录,创建accounts.json文件,并修改accounts.json内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[
{
"$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_xxxx”

接着进入”3.1.3.xxx”目录,打开user.config文件,加入六行代码到SourceTree.Properties.Setttings里面。

1
2
3
4
5
6
<setting name="AgreedToEULA" serializeAs="String">
<value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
<value>20160201</value>
</setting>

关闭后再次执行SourceTreeSetup-3.1.3.exe,即可跳过注册页面.

文章作者: pengweifu
文章链接: https://www.pengwf.com/2020/05/15/other/TOOL-sourcetree/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 麦子的博客
打赏
  • 微信
    微信
  • 支付宝
    支付宝

评论