1
我用以下三個命令來推動改變一個已經存在的應用程序,但所做的更改不會被反射推送到heroku,但沒有更改應用程序?
$ git add .
$ git commit -m "changes"
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
$ git push heroku master
我也得到:
To [email protected]:sleepy-oasis-7771.git ! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:sleepy-oasis-7771.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
,並沒有更改反映在應用程序
請檢查以下內容:http://stackoverflow.com/questions/9831129/failed-to-push-some-refs-to-githeroku-commyapp-git –