沒有安裝.NET的會(huì)提示先安裝.NET
到這就先關(guān)掉与学,然后打開我的電腦彤悔,將下面代碼粘貼到地址欄
%LocalAppData%\Atlassian\SourceTree\
打開就會(huì)看到
要?jiǎng)?chuàng)建一個(gè)accounts.json文件,寫入以下內(nèi)容
[
????{
????????"$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就好啦索守,跳過注冊(cè)晕窑,會(huì)選擇用什么Git
如果使用git客戶端,選擇我不想使用Mercurial即可.
然后就可以輕松使用啦