本文轉載地址:https://www.cnblogs.com/lucio110/p/8192792.html
SourceTree 安裝的時候有個很大的麻煩就是要注冊,而且跳不過去,如圖:
下面我們來說說如何注冊。
首先復制下面一句話到地址欄,打開sorcetree的地址。
1 %LocalAppData%\Atlassian\SourceTree\
打開如下圖所示:
本來是沒有 account.json 這個文件的。這個文件 就是我們要加進去注冊用的。account.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 } ]
然后在打開sourcetree 點擊安裝就OK了。