image.png
SourceTree 安裝之后需要使用賬號(hào)登陸以授權(quán)麸塞,并且是強(qiáng)制登陸。
登錄過(guò)程非常漫長(zhǎng)涧衙,并未在不FQ的情況下是不能成功的哪工,下面記錄一下跳過(guò)登錄的方法。
裝之后弧哎,轉(zhuǎn)到用戶本地文件夾下的 SourceTree 目錄雁比,找到 accounts.json
文件,沒(méi)有則新建撤嫩。
C:\Users\Administrator\AppData\Local\Atlassian\SourceTree
輸入以下內(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
}
]
大功告成偎捎,現(xiàn)在再打開(kāi) SourceTree,直接顯示主窗口了序攘。
sourceTree Mac 跳過(guò)注冊(cè) 安裝
- 打開(kāi)sourcetree
- 關(guān)閉sourcetree
- 命令終端輸入
defaults write com.torusknot.SourceTreeNotMAS completedWelcomeWizardVersion 3
- 打開(kāi)sourcetree即可跳過(guò)登錄