sourceTree安裝、跳過bitbucket註冊免登陸方法

我現在所用的版本是 SourceTreeSetup-3.2.6.exe

下載地址因爲官網比較難下,所以我把百度網盤貼出來:

鏈接: https://pan.baidu.com/s/1KOGnRYi9Fp043NsdAXQtGQ 提取碼: gnv2

如果官網能下,嘗試

官網:https://www.sourcetreeapp.com/
windows版下載地址:https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.2.6.exe?_ga=2.240708419.1383101182.1574670384-200523786.1574670384

1、下載好以後,點擊安裝運行

2、關掉這個窗口,在我的電腦 地址欄中打開 %LocalAppData%\Atlassian目錄

3、接着進入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
  }
]

4、看到網上很多教程只有上面的步驟,但是下面這個步驟也是必須的,要不然不會成功。

打開 %LocalAppData%\Atlassian,進入"SourceTree.exe_Url_nn1m0zxifrz542zaokz0zdglt1dyzdcn\3.2.6.3544"
打開user.config文件,在<SourceTree.Properties.Settings>裏面加入六行代碼。

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

5、重新執行 安裝文件

如果發現此時安裝異常或者不成功,請重啓電腦並檢查上面的文件是否修改成功。

6、我們一般使用git都會安裝git,所以選擇不使用Mercurial

7、到這一步設置用戶名信息基本就成功了。

發佈了61 篇原創文章 · 獲贊 155 · 訪問量 42萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章