【发布时间】:2022-06-14 13:15:28
【问题描述】:
当尝试使用 gh-pages 部署 React 应用程序时,我收到以下错误
...
$ gh-pages -d build
Failed to get remote.origin.url (task must either be run in a git repository with a configured origin remote or must be configured with the "repo" option).
...
遥控器设置为origin
$ git remote -v
origin https://github.com/{user_name}/{repo_name} (fetch)
origin https://github.com/{user_name}/{repo_name} (push)
【问题讨论】:
标签: git github github-pages