【问题标题】:View repos in my GitHub organisation using ssh使用 ssh 查看我的 GitHub 组织中的存储库
【发布时间】:2020-07-21 12:46:24
【问题描述】:

我最近被添加到一个组织https://www.github.com/examplecorp

是否可以从我的终端使用 SSH 查看组织中的存储库列表? 我在我的 Github 帐户中部署了我的公钥。

【问题讨论】:

  • GitHub.com 仅将 ssh 用于身份验证和与您的 git 存储库(托管在 github.com 上)通信。 Github.com 用户的相关数据没有存储在 git 存储库中,因为这不是它的用途(它是用于代码)您正在寻找的是使用他们的 HTTP API docs.github.com/en/rest/reference/…
  • 你能回答一下吗

标签: git github github-organizations


【解决方案1】:

Github.com 仅使用 SSH 进行身份验证并与托管在 GitHub 上的 git 存储库进行通信。

Github 用户的相关数据(与 git 无关)不会存储在 git 存储库中,因为这不是他们的目的,它是用于存储代码和修订版。

因此,您正在查看的信息可通过他们的 HTTP API 获得,请参阅 https://docs.github.com/en/rest/reference/orgs#list-organizations-for-the-authenticated-user

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-24
    • 2021-05-10
    相关资源
    最近更新 更多