Deploying to heroku with git keeps getting rejected due to fast-forwards

前端 未结 3 1840
时光说笑
时光说笑 2021-02-02 09:00

I keep getting the following fail with heroku + git...

$ heroku jammit:deploy --app XXXXXXXXXXX
===== Compiling assets...[OK]
===== Commiting assets...[OK]
=====         


        
3条回答
  •  青春惊慌失措
    2021-02-02 09:51

    git push -f REMOTE BRANCH:master #or just master
    

    Force it! Replace REMOTE with your heroku remote name (git remote -v to view all remotes). Replace BRANCH with the branch you want to push or just put "master" for the master branch.

提交回复
热议问题