官網下載地址:https://www.sourcetreeapp.com/
Windows
安裝過程中,出現如圖所示:
跳過方法,如下:
1. 進入本地SoureTree目錄,命令:
%LocalAppData%\Atlassian\SourceTree\
2. 新建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 } ]
3. 再次嘗試,如果依然沒有跳過登錄,請通過命令
%LocalAppData%\Atlassian\
然后依次打開SourceTree.exe_Url_#####/3.1.2.3027/user.config文件
添加如下內容:
<setting name="AgreedToEULAVersion" serializeAs="String"> <value>20160201</value> </setting>
4. 再次嘗試,就會提示如下界面:
Mac:
為了同步使用,結果發現SourceTree的最新版本需要Mac OS 10.14以上支持,為此不得不使用SourceTree 2.x 版本。
SourceTree歷史版本下載: https://www.sourcetreeapp.com/download-archives
跳過步驟:
1. 下載2.x版本成功后,解壓目錄,打開SourceTree,Mac會提示將SourceTree移動到應用程序中,同意即可。然后關閉SourceTree
2. 打開應用程序 -> SourceTree -> 右鍵顯示包內容
3. 在finder的右上角搜索欄處,搜索“Atlassian”,搜索選擇“Contents”
4. 搜索到的內容,全部刪除
5. 再次打開SourceTree即可。
參考: https://www.jianshu.com/p/e9b398cdbae5