转载:https://www.cnblogs.com/leohe/p/6726120.html
在安装Bitbucket推荐的客户端sourcetree时需要注册,而注册时不翻墙是收不到验证码的。不愿翻墙,网上搜索的解决办法如下(测试有效):
1.安装sourceTree,提示需要登录时,找到目录:C:Users用户AppDataLocalAtlassianSourceTree
2.在上述文件夹中新建文本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
}
]
3.重新安装SourceTree即可。