SourceTree安裝包下載地址:node
連接: https://pan.baidu.com/s/1rOPQkfNqvLGcIeZNw0aAjw 密碼: 42usgit
nodev6.9.0 和gitjson
%LocalAppData%\Atlassian\SourceTree\ 安裝路徑後
在這個目錄下新建一個名爲 accounts.json
的文件。spa
使用 文本文檔
打開這個文件,將如下內容複製到其中後保存。code
[ { "$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 } ]
注意: Windows
系統文件後綴是默認隱藏的,須要先顯示文件的後綴名,而後隨便新建一個 文本文檔
,將文件全名改成 accounts.json
便可。blog