git push heroku master说“一切都是最新的”,但该应用程序不是最新的 [英] git push heroku master says "Everything up-to-date", but the app is not current
问题描述
git push heroku master
它会说
抓取存储库,完成。
一切都是最新的
但是如果我去看应用程序,它是所有旧代码。我在15天前将网站恢复到Heroku中的另一个版本,但自那时以来一直推送更新到它,并且它们工作正常。
为什么heroku没有获得最新版本来自我的github存储库的文件?有没有办法重置应用程序并再次从github推送文件?
预先致谢! >解决方案
请确认您当前的分支是主人。
git分支
如果指针没有指向master,那么检查master分支
git checkout master
提交您的更改并尝试推送至heroku
git commit -amxxxyyzzz
git push heroku master
I have an app on Heroku that is running old code. I've made a small change and committed the change. I then ran
git push heroku master
It'll say
Fetching repository, done.
Everything up-to-date
But if I go and look at the app, it's all old code. I did revert the site back to another version in Heroku about 15 days ago, but pushed updates to it since then and they worked.
Why is heroku not getting the most current files from my github repository? Is there a way to just reset the app and push the files from github again? I have production data in the database so I do NOT want to touch it.
Thanks in advance!!
Kindly confirm your current branch is master.
git branch
If the pointer is not pointing the master, then check out to master branch
git checkout master
Commit your changes and try to push to heroku
git commit -am "xxxyyzzz"
git push heroku master
这篇关于git push heroku master说“一切都是最新的”,但该应用程序不是最新的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!