Windows10 下 SourceTreeSetup-3.2.6.exe 跳過註冊 Bitbucket

0. 安裝 Git

1. 下載並執行SourceTreeSetup-3.2.6.exe,會進入以下界面。

在這裏插入圖片描述

2. 關閉這個界面。

3. C:\Users\young\AppData\Local\Atlassian\SourceTree 添加accounts.json 文件

C:\Users\young\AppData\Local\Atlassian\SourceTree
young 爲用戶名。換成自己的。

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
  }
]

4. C:\Users\young\AppData\Local\Atlassian\SourceTree.exe_Url_n222km3wptgdvxwmgelnuodyl5shfgjb\3.2.6.3544 修改 user.config

configuration userSettings SourceTree.Properties.Settings 之下添加以下 6 行內容

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

5. 重新點擊安裝 SourceTreeSetup-3.2.6.exe

6. 不安裝 Mercurial

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章