【问题标题】:I'm getting an error: pathspec 'branch-name' did not match any file(s) known to git我收到一个错误:pathspec 'branch-name' 与 git 已知的任何文件都不匹配
【发布时间】:2020-06-17 00:33:05
【问题描述】:

我目前正在将 nextJS 站点部署到 github 页面,但在运行 npm run deploy 时出现错误。我怀疑这是一个 git checkout 错误,但不确定从哪里开始调查。

这是错误的屏幕截图:

我错过了什么吗?

任何帮助将不胜感激。

【问题讨论】:

    标签: reactjs github deployment github-pages next.js


    【解决方案1】:

    这是固定的。我已经使用 ZEIT Now 来部署我的应用程序。看: https://nextjs.org/learn/basics/deploying-a-nextjs-app/deploying-to-zeit-now

    然后,将我的域名分配给我的 ZEIT Now 部署。为了让我的代码在 Github 中仍然可见,我刚刚将我的 NextJS 站点推送到了 repo。

    【讨论】:

      猜你喜欢
      • 2015-08-28
      • 1970-01-01
      • 2015-02-04
      • 1970-01-01
      • 2022-10-12
      • 1970-01-01
      • 2013-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多