我试图在github页面上部署我的角度项目,突然错误说,
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).
我尝试在项目目录中执行的命令是:
angular-cli-ghpages -d dist/news-app/ --no-silent
我也在 github 存储库上推送了我最新的源代码。
我认为您只需要使用以下命令将遥控器添加到 git 中:
git remote add origin <github-url>
要查看遥控器:
git remote -v