SourceTree跳過註冊安裝

官網下載SourceTree

SourceTree官網地址
在這裏插入圖片描述

安裝SourceTree,跳過登錄

使用安裝包安裝,到達登錄頁時,關閉掉,然後,打開 %LocalAppData%\Atlassian目錄,接着進入SourceTree目錄,創建accounts.json文件,並修改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
  }
]

打開 %LocalAppData%\Atlassian,進入“SourceTree.exe_Url_iayhtc13zv3obzuz5vchezjs1az2q5ef”(注該目錄可能和版本相關,不同版本的路徑可能不完全一樣。)

接着進入"3.1.3.3158"目錄,打開user.config文件,在裏面加入六行代碼。

  <setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>
  </setting>
  <setting name="AgreedToEULAVersion" serializeAs="String">
      <value>20160201</value>
  </setting>

保存之後,重新安裝即可

Mac系統跳過登錄

  1. 打開sourcetree
  2. 關閉sourcetree
  3. 命令終端輸入defaults write com.torusknot.SourceTreeNotMAS completedWelcomeWizardVersion 3
  4. 打開sourcetree即可跳過登錄
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章