1、安裝sourcetree時 需要選擇 bitbucket賬號,這個令人頭疼
當然肯定有辦法來跳過這一步
2、關閉當前安裝界面
進入 C:\Users\Administrator\AppData\Local\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 } ]
3、然后返回到父目錄下,進入到 SourceTree.exe_Url_eokpufuqmdj0jrg3pcijipnt33btnzjl目錄,然后進入到 3.3.6.3829
這兩個目錄 不同的sourceTree版本 后面的可能略微有點不同,找到 user.config 文件
在 <SourceTree.Properties.Settings> 這一行下面新加以下內容
<setting name="AgreedToEULA" serializeAs="String"> <value>True</value> </setting> <setting name="AgreedToEULAVersion" serializeAs="String"> <value>20160201</value> </setting>
保存
4、再次點擊SourceTree.exe 安裝文件 便跳過了第一步