【问题标题】:Heroku Git says "up to date " but it is not updatingHeroku Git 说“最新”但它没有更新
【发布时间】:2020-10-06 22:18:27
【问题描述】:

背景:我该应用更改的时候了。我先应用了这个:

$ heroku git:clone -a ewbudget
$ cd ewbudget

而不仅仅是更新它:

$ git add .
$ git commit -am "make it better"
$ git push heroku master

我已经读到我应该检查我是否在 master 分支上,但由于某种原因我仍然无法更新我的新代码。

【问题讨论】:

  • 输出了哪些提示“更新失败”的消息?
  • 当我检查我的应用程序时,它仍在渲染我的旧代码。另外,当我尝试git releases 时,最后一次更新不匹配
  • heroku git:clone 看起来像一个克隆操作,而git add. + push 则完全相反。见here。也许您下载了旧内容而不是上传新内容?
  • 我首先相信我heroku git:clone,它搞砸了这个过程。但是,我对 Git 不熟悉,所以我从这里卡住了。

标签: git heroku git-push


【解决方案1】:

我也有同样的情况,现在我更新了一个已经运行的应用程序的代码,如下所示:

git commit -am "your-message"
git push heroku

【讨论】:

    猜你喜欢
    • 2018-10-06
    • 2019-10-19
    • 2014-08-01
    • 2014-03-23
    • 1970-01-01
    • 2011-05-17
    • 1970-01-01
    • 1970-01-01
    • 2014-09-22
    相关资源
    最近更新 更多