1. 程式人生 > >Windows 版 SourceTree 免登入跳過初始設定的方法

Windows 版 SourceTree 免登入跳過初始設定的方法

SourceTree 初始化登入
SourceTree 安裝之後需要使用賬號登陸授權以後才可以使用,以前是可以不登陸的,但是現在是強制登陸。雖然是免費授權,但是不知道是什麼原因,登陸經常會失敗,翻牆也不行,這裡就分享一下跳過這個初始化的步驟。
SourceTree 免登入跳過初始設定的方法

首先,安裝完 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 就可以直接跳過登入進入軟體頁面了。