window版Sourcetree跳過註冊的方法

南下45°發表於2018-11-30

下載好軟體開始安裝。

安裝好執行程式,會提示讓登陸註冊,

下面是跳過註冊的方法:

將下面的一串串放進我的電腦的位址列,開啟sourcetree的資料夾

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

儲存檔案,重啟sourcetree,就可以跳過註冊了。

相關文章