1. 程式人生 > >SourceTree 免註冊

SourceTree 免註冊

最近忙著公司專案,用到了git,客戶端使用sourcetree來管理程式碼,老版本的source用起來卡,所以下載了新版本sourcetree,截圖一下


這裡在下載安裝sourcetree到簡單,但是安裝開啟後會提示你Atlassian需要註冊,這家軟體公司在澳大利亞,所以註冊時需要翻牆,才能註冊成功,為了快點使用,這裡提供一個方法

1. 找到目錄:C:\Users\使用者\AppData\Local\Atlassian\SourceTree

2. 新建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. 重新開啟,就不會提示註冊了!