我正在按照GitHub 文档中有关如何将现有项目添加到 GitHub 的说明进行操作。但是,当我尝试按照指示在项目根目录中'gh' is not recognized as an internal or external command, operable program or batch file.
使用命令时,收到错误消息。gh repo create fs1
这fs1
是我的项目名称。我浏览了 StackOverflow 但尚未找到任何帮助。我缺少什么?
小智 49
您所关注的页面不包含安装 GitHub CLI 的说明,因此您可能没有安装它(据我所知,它没有随 git 一起提供)。
安装说明可以在这里找到: https: //cli.github.com/
aak*_*dev 12
gh
是 github cli。安装 github cli:
choco install gh
Run Code Online (Sandbox Code Playgroud)
( choco 大多数时候都是和nodejs一起安装的)
brew install gh
Run Code Online (Sandbox Code Playgroud)
对于 Linux: https: //github.com/cli/cli/blob/trunk/docs/install_linux.md
参考: https: //cli.github.com/manual/installation