windows版sourceTree 免登录安装,小白教程,超级简单

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版本跳过登陆的方法更加简单,详见我的另一篇文章:Mac版sourceTree跳过登录

猜你喜欢

转载自blog.csdn.net/RedaTao/article/details/104171068
今日推荐