Hacker News 中文摘要

RSS订阅

GitHub CLI现收集伪匿名遥测数据 -- GitHub CLI now collects pseudoanonymous telemetry

文章摘要

GitHub CLI的遥测功能帮助收集使用数据以改进产品,用户可查看手册了解相关命令和功能,如认证、别名设置等操作指南。

文章总结

GitHub CLI 遥测功能说明

GitHub CLI 会发送伪匿名遥测数据以帮助改进产品功能。以下是关于该功能的关键信息:

数据收集目的

随着 GitHub CLI 代理功能的普及,开发团队需要了解功能实际使用情况。这些数据用于: - 确定工作优先级 - 评估功能是否满足用户真实需求 - 分析新子命令的采用率和使用模式 - 根据常用标志优化用户体验

查看遥测内容

用户可以通过以下方式查看将被发送的数据(不实际发送): 1. 环境变量模式: bash export GH_TELEMETRY=log

  1. CLI配置模式: bash gh config set telemetry log

启用日志模式后,系统会在stderr输出JSON格式的示例数据,包含以下典型字段: - 命令类型 - 系统架构 - 设备ID(伪匿名) - 使用标志 - 终端类型 - 操作系统 - CLI版本等

选择退出

退出遥测收集的方式:

环境变量方式(支持多种 falsy 值): ```bash export GH_TELEMETRY=false

export DONOTTRACK=true ```

CLI配置方式bash gh config set telemetry disabled

注:环境变量设置会覆盖配置值。

数据去向

遥测数据发送至GitHub内部分析系统,相关隐私政策参见《GitHub通用隐私声明》。

重要说明

  1. 第三方扩展可能独立收集使用数据,不受主程序退出设置控制
  2. 本文内容不适用于GitHub Copilot及其CLI功能
  3. 数据收集完全遵守GitHub的隐私政策和服务条款

(注:原文中大量重复的导航菜单和命令列表等非核心内容已做删减,保留了所有关键信息点和操作指南)

评论总结

以下是评论内容的总结,保持不同观点的平衡性:

  1. 对遥测功能的质疑

    • 用户质疑为何企业需要收集用户数据,认为好的工程实践已足够(评论7)
      "Git has served us well for 20+ years without detailed analytics"
      "Why corporate development teams always feel the need to spy on their users?"
    • 担心数据可能被用于身份识别(评论14,16)
      "pseudoanonymous = euphemism for not anonymous"
      "could be used to reconstruct your identity with machine learning"
  2. 对GitHub CLI的讨论

    • 部分用户不了解CLI的存在意义(评论6,10)
      "Today I learned GitHub has a CLI"
      "why wouldn't you just use git?"
    • 认为这是微软"拥抱-扩展-消灭"策略的一部分(评论13)
      "I give it five years before the GH CLI is the only way"
  3. 替代方案建议

    • 推荐使用Gitea等自托管方案(评论11,15)
      "just faster and better uptime that github"
      "just use Radicle and never look back"
    • 建议欧盟用户向GitHub投诉(评论9)
      "mails privacy@github.com and opens a support ticket"
  4. 技术细节讨论

    • 提供禁用遥测的方法(评论2)
      "export GH_TELEMETRY=false"
      "gh config set telemetry disabled"
    • 企业版默认禁用(评论8)
      "remains disabled by default for enterprise users"
    • 询问无遥测的最后版本(评论3)
      "what's the last version before telemetry"
  5. 数据收集方式的建议

    • 建议透明化数据收集内容(评论16)
      "Why not just expose exactly what telemetry is being sent"
      "Like add an option that makes telemetry verbose"