git - 我在尝试推送到 Heroku 时遇到错误
问题描述
我遇到了一个错误,我用谷歌搜索了很多,但似乎没有任何效果。我在 Stack Overflow 上尝试过fetch、pull、push、rebase和许多。我还重新克隆了 repo,看看这是否有帮助,但没有任何效果。
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/repo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决方案
推荐阅读
- php - 在 PHP 中循环 for 循环
- php - 在 PHP 中正确获取此数组的排序顺序
- optimization - ILNumerics:优化函数时返回意外的最小值
- http - Access-Control-Allow-Origin 和 allow-timing-origin 有什么区别?
- r - geom_line 不显示线
- javascript - 从数组打字稿中列出项目的逻辑
- c++ - 我需要将数组传递给函数以平均不同的测试分数
- python - 在 python 中构建知识图谱
- c# - 从 n 个 m 面骰子 c# 中获得特定总和的概率
- data-modeling - AgensGraph 中的 RDB + GDB 用例