1. 程式人生 > >SourceTree跳過Atlassian賬號,免登陸,跳過初始設置

SourceTree跳過Atlassian賬號,免登陸,跳過初始設置

oca ini 未在 copy 直接 def cred 授權 users

技術分享圖片

SourceTree 安裝之後需要使用賬號登陸以授權,並且是強制登陸。

登錄過程非常漫長,並未在不FQ的情況下是不能成功的,下面記錄一下跳過登錄的方法。

裝之後,轉到用戶本地文件夾下的 SourceTree 目錄,找到accounts.json 文件,沒有則新建。

C:\Users\Administrator\AppData\Local\Atlassian\SourceTree

輸入以下內容保存即可

技術分享圖片
[
  {
    "$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,直接顯示主窗口了。

SourceTree跳過Atlassian賬號,免登陸,跳過初始設置