sourcetree 黑科技

转自:https://it.cha138.com/php/show-47743.html
哪里有压迫,哪里就有反抗。于是就出现了许多绕过 Sourcetree 登录注册的黑科技,这里记录其中的一种,也分享给大家。

Windows 版本
安装 Sourcetree 最新版本,打开运行,提示登录注册,直接关掉应用。打开文件资源管理器,地址栏输入:

%LocalAppData%\Atlassian\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

]
有了这个文件,再次打开 Sourcetree 就可以跳过登录注册环节,直接使用了。

MacOS 版本
Mac 版本操作更简单,直接打开 Sourcetree 运行一次,再关闭,打开终端命令行工具,输入命令:

defaults write com.torusknot.SourceTreeNotMAS completedWelcomeWizardVersion 3
执行即可。

posted @   湛蓝v天空  阅读(14)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示