sourcetree 跳过首次登录实现方法
程序员文章站
2022-10-20 07:52:48
sourcetree首次登录需要vpn才能访问目标主机,然而本人手上只有代理没有vpn咋个办嘞?
1.下载旧版本的sourcetree https://downloads.atlassian...
sourcetree首次登录需要vpn才能访问目标主机,然而本人手上只有代理没有vpn咋个办嘞?
1.下载旧版本的sourcetree https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-1.10.23.1.exe?_ga=2.163056572.16084660.1520596135-812401212.1520596135
2. 安装好以后,先运行一波,看到需要登录的界面就关掉
3. 定位到用户缓存数据目录:(需要在文件夹选项中 开启不隐藏文件夹和不隐藏文件扩展名)
一般为: C:\Users\{用户名}\AppData\Local\Atlassian
进入sourcetree目录:C:\Users{用户名}\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 } ]
重启sourcetree软件