SourceTree 免登录跳过初始设置 - 转
转自:http://www.cnblogs.com/xiofee/p/sourcetree_pass_initialization_setup.html
在SourceTree的配置目录新建(或修改)accounts.json为如下内容。配置目录一般位于:C:\Users\Administrator\AppData\Local\Atlassian\SourceTree,该目录需先启动一次SourceTree才会被生成(一般安装完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 } ]
-------特别说明下-------
要想ssh私钥和Linux下的通用,要将SourceTree一般选项下的SSH Client类型改为OpenSSH。