[轉載]sourceTree 3.x跳過註冊

查來查去,仍是百度經驗這個最靠譜。javascript

推薦查看原連接,我這裏就簡略記錄下,以防之後找不到html

原連接:https://jingyan.baidu.com/article/4f34706e6e4985e386b56d79.htmljava

 

 

1.打開 %LocalAppData%\Atlassian目錄,建立accounts.json文件,並修改accounts.json內容以下: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. %LocalAppData%\Atlassian,進入「SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef」(注該目錄可能和版本相關,不一樣版本的路徑可能不徹底同樣。)code

接着進入"3.1.3.3158"目錄,打開user.config文件,在裏面加入六行代碼:htm

<setting name="AgreedToEULA" serializeAs="String">

                <value>True</value>

            </setting>

            <setting name="AgreedToEULAVersion" serializeAs="String">

                <value>20160201</value>

            </setting>

  

 

 3.從新打開sourceTree.exe, 可能彈出Mercurial詢問窗口,根據實際狀況選擇:好比使用默認選項下載Mercurial,或者使用第四個選項「我不想使用Mercurial」。blog

相關文章
相關標籤/搜索