SourceTree windows免註冊免登錄使用方法

問題描述:json

安裝SourceTree後,首次使用時,須要登陸帳號;但咱們在註冊或登陸時,可能根本沒法打開網頁,致使不能進入。ui

以下截圖:code

解決方法:blog

在目錄C:\Users\XXXXX\AppData\Local\Atlassian\SourceTree 下建立文件accounts.json ip

注意:XXXXX表明登陸系統用戶名it

accounts.json 中添加如下代碼:io

[
{
"$id": "1",
"$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
"IsDefault": false,
"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.Api.Account.Basic.BasicAuthCredentials, SourceTree.Api.Account.Basic",
"Username": "username@email.com",
"Email": null,
"AvatarURL": null,
"AuthenticationScheme": {
"$type": "SourceTree.Api.Account.Basic.BasicAuthAuthenticationScheme, SourceTree.Api.Account.Basic",
"Value": "用戶名/密碼",
"Name": "Basic",
"Description": "密碼",
"HeaderValuePrefix": "Basic",
"UsernameIsRequired": true
},
"Id": "username@email.com",
"EmailHash": "$2b$11$wgr1TJNVKwiK/dQBd3HKm.2vhJdNmcNbWtb1SQQGgocCxWzQCGZaW",
"DisplayName": null
}
}
]

從新啓動軟件後,提示信息以下截圖:email

根據本身需求,下載安裝;而後從新啓動軟件,就能夠成功進入界面。登錄

相關文章
相關標籤/搜索