step1:json
https://www.sourcetreeapp.com/官網下載windows版軟件windows
step2:app
右鍵-->以管理員身份運行,便安裝成功了spa
step3:code
安裝好以後會有這麼一個界面要求你註冊或登陸,沒必要理會。將下面的一串串放進"個人電腦"的地址欄,打開sourcetree的文件夾blog
%LocalAppData%\Atlassian\SourceTree\
如圖所示:it
step4:class
在sourcetree目錄下,新建一個accounts.json的文件,並用editplus或者notepad++打開,將下述代碼複製進去登錄
[ { "$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 } ]
保存文件,從新啓動source客戶端便可軟件