【问题标题】:Git submodules best practice - always use ssh protocol over https?Git 子模块最佳实践 - 总是在 https 上使用 ssh 协议?
【发布时间】:2014-07-18 21:17:17
【问题描述】:

我从事许多使用子模块的项目,其中一些使用https and ssh protocols 的组合添加到它们的父存储库中,好像哪个并不重要。 SSH 协议的好处是它使用 ssh 密钥,但 requires users set up those keys first

我想制定一个团队政策:所有项目应该在子模块中使用GitHub's git user with ssh protocol。上述政策的优缺点是什么?

【问题讨论】:

    标签: git github ssh git-submodules


    【解决方案1】:

    专业版:

    • ssh 密钥可以注册/撤销

    缺点:

    我更喜欢activating 2FA on GitHub account,并且只使用个人访问令牌,它也可以被撤销,但它被用作经典的用户名/密码方式(and which can be cached)与https url

    在这两种情况下,user need to be added as a collaborator to the GitHub repo

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-10
      • 2023-04-08
      • 1970-01-01
      • 2017-10-23
      相关资源
      最近更新 更多