【GIT必备】SourceTree 免登录安装教程

SourceTree 是一款拥有可视化界面的项目版本控制软件,适用于git项目管理。

Window版

1.下载

腾讯软件中心下载地址:https://pc.qq.com/detail/17/detail_23237.html

或者sourceTree官网下载:https://www.sourcetreeapp.com/

2.安装

安装包下载之后,双击打开,会出现如下界面(3.2.6版本):
在这里插入图片描述
此时提示需要登陆,放着不管,需要再做两件事:

2.1.添加一个 accounts.json 文件

用文件管理器打开 %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
  }
]

2.2.修改 user.config 文件

找到 %LocalAppData%\Atlassian\SourceTree.exe_Url_xxxxxxxxxx\3.1.2.3027\user.config 文件,记事本或者其他编辑工具打开,在该文件 <SourceTree.Properties.Settings> 添加以下内容并保存

<setting name="AgreedToEULAVersion" serializeAs="String">
	<value>20160201</value>
</setting>

重新打开 SourceTree,即为已登陆状态,下一步即可。
在这里插入图片描述

MAC版教程

1.下载

同上

2.安装

1.打开sourceTree,提示登录,
在这里插入图片描述
2. 此时,选中sourceTree,点左上角菜单栏:窗口–>点击显示托管在远端仓库–>弹出拉取失败
在这里插入图片描述
在这里插入图片描述
3.关掉当前登录窗口,离开(quit)–>确定仓库拉取失败–>进入成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值