Windows
众所周知,SourceTree 是个好用的 Git 客户端,但是安装之后必须要登录才能使用,这一点有点难受,而且一些原因,在国内并不是很好注册账号去登录,所以就有人找到跳过这一配置的方法:
在目录 C:\Users{$user}\AppData\Local\Atlassian\SourceTree 下新建文件 accounts.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
}
]