你的GitHub副驾驶员订阅可以从命令行访问。这需要您的Copilot订阅是活跃的,并且您的GitHub帐户已经过身份验证。这是通过官方的GitHub命令行接口gh完成的。You can read the full documentation for deploying from the command line on the github-copilot-in-the-cli docs.

部分

 

将GitHub帐户连接到SCC

我们建议使用双因素身份验证(2FA)设置您的GitHub帐户。请按照我们的指示使用SCC与GitHub 2FA。

安装GitHub Copilot

  1. 加载“大酒店”模块并使用该命令进行身份验证gh auth login. 在下面的视频中,选择了以下选项:GitHub.com、HTTPS和y。
  2.  

  3. 接下来,您将选择通过本地浏览器或令牌进行身份验证。在下面的视频中,我们展示了使用浏览器进行身份验证。
  4.  

  5. After authenticated, install the GitHub Copilot extension with the following command:
    [rcs@scc1 ~] gh extension install github/gh-copilot

    现在你准备好从命令行开始使用GitHub Copilot了!

  6.  

    最后更新:加载中…