即使一切都是最新的,Git Push Heroku Master也拒绝了

问题描述 投票:0回答:1

我真的很困惑 - 我已经对我的应用程序进行了一些更改,并且需要将更改推送到heroku。

我已经运行git add . git commit -m "message"git push origin master(我所有的工作都在主分支上),并得到消息说Everything up to date.

但是,当我立即运行git push heroku master之后,我收到一条消息说Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes (e.g. 'git pull ...') before pushing again.

当我运行git pull origin master时,它说Already up-to-date。所以我真的很困惑这里背后的东西,或者我需要做什么!

ruby-on-rails git github heroku
1个回答
0
投票

使用source-tree并检查文件状态,然后尝试推送。

https://www.sourcetreeapp.com/

© www.soinside.com 2019 - 2024. All rights reserved.