sourceTree 3.3.8免登錄安裝

一、sourceTree舊版本免登錄

1.安裝

點擊安裝程序安裝sourceTree

2.修改文件

輸入 %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
  }
]

3.重新安裝即可

二、sourceTree3.3.8安裝免登錄

參考 http://www.manongjc.com/detail/15-pkitvyqcstbghrh.html

1.安裝

點擊安裝程序安裝sourceTree

2.修改文件

輸入 %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
  }
]

打開 %LocalAppData%\Atlassian,進入“SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef”(注該目錄可能和版本相關,不同版本的路徑可能不完全一樣。)

進入 3.3.8.3848 目錄, 打開user.config 加入這幾句話


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

3.重新點擊seourceTree.exe 安裝, 彈框選擇最後一項安裝即可

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