SourceTree 免登錄跳過初始設置的方法

mac 版還好,主要是 windows 版本安裝好了以後會彈登陸授權,以前是可以跳過的,現在變強制了。
這裏寫圖片描述
雖然是免費授權的,但是它這個服務器呀,我啥也不說了,gmail登不上,註冊也註冊不上,總之我整了一下午,不管你翻不翻牆你都是上不去,無奈。。。
所以這裏記一下跳過這一步的方法。
原文:http://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html

安裝之後,轉到用戶本地文件夾下的 SourceTree 目錄,沒有則新建。
注意是 LocalAppData 下的文件夾,不是它的安裝目錄

%LocalAppData%\Atlassian\SourceTree\

新建 accounts.json 文件

%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,直接顯示主窗口了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章