sourcetree跳過註冊的方式

1:僅針對sourcetree 3.2.6版本

首先在官網上下載SourceTree的安裝包,我下載的時候最新版本是3.2.6
安裝好軟件後,打開軟件會提示必須使用Bitbuket的賬號纔可以登錄,我們只需要跳過這一步就可以正常使用其功能,具體步驟爲:
爲防止官網更新講文件放到雲盤中供下載
鏈接:https://pan.baidu.com/s/1pTPkxiFU8qeTUJa1lf1gmw
提取碼:77nd

2:

在文件系統地址欄輸入: %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
}]

2:

第二步:在文件系統地址欄輸入:%LocalAppData%\Atlassian進入SourceTree.exe_Url_2teh2ti3u00uadewxtjgksiqhpw5qyeh文件夾(根據版本不同,文件夾名稱略有不同但前半部是一樣的),再次進入名稱爲版本號的文件夾,這裏是3.2.6.3544,打開user.config文件在SourceTree標籤中添加代碼

<setting name="AgreedToEULA" serializeAs="String">
    <value>True</value>
</setting>
<setting name="AgreedToEULAVersion" serializeAs="String">
    <value>20160201</value>
 </setting>
# 3:
重啓軟件後就已經跳過了註冊/登錄的步驟,此時會彈出未檢測到mercurial的彈窗,選擇第四個不適用==mercurial==,即可正常使用SourceTree的功能了。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章