我在 Heroku 上部署了一个应用程序。我简单地将应用程序克隆到 cloud9 IDE 上进行一些更改,如下所示:
heroku git:clone -a myApp
之后,我尝试按照以下方式推送更改:
$ git add .
$ git commit -am "make it better"
$ git push heroku master
它给了我以下错误:
To https://git.heroku.com/myApp
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/myApp'
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.