1. 程式人生 > 其它 >sourcetree安裝跳過註冊方法

sourcetree安裝跳過註冊方法

SourceTree程式碼管理器,安裝及使用

今天安裝sourcetree一直卡在註冊介面,註冊並登陸成功後,也無法繼續安裝。。。
1、位址列直接輸入%LocalAppData%\Atlassian,接著進入SourceTree目錄,建立accounts.json檔案,並複製以下程式碼至accounts.json:

 1 [{
 2     "$id": "1",
 3     "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
 4     "Authenticate": true,
 5     "HostInstance": {
6 "$id": "2", 7 "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount", 8 "Host": { 9 "$id": "3", 10 "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
11 "Id": "atlassian account" 12 }, 13 "BaseUrl": "https://id.atlassian.com/" 14 }, 15 "Credentials": { 16 "$id": "4", 17 "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account", 18 "Username": "", 19 "Email": null 20 },
21 "IsDefault": false 22 }]


2、然後開啟SourceTree.exe_Url_ul4qrk3hz4zqb14vcaiypmrdv255kkqk\3.3.8.3848\下的user.config檔案(不同版本路徑有所不同,我的是3.3.8版本),增加如下程式碼:

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


3、重新點選SourceTree.exe安裝,彈出如下視窗時,選擇最後一項安裝即可。

親測有效。

附上檔案地址

連結:https://pan.baidu.com/s/1RjubLDVQg-02wCeMF_MGUA
提取碼:mkz9