DjangoのプロジェクトをHerokuにpushできなくなりました。
出力されているエラーメッセージは
(myspace) C:\Users\USER\Desktop\django_app>git push heroku master ザイン、検索時グレー To https://git.heroku.com/hogedjango.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://git.heroku.com/hogedjango.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
になります。
普段は
(django) $ git add -A . (django) $ git commit -m "comment" (django) $ git push heroku master
でデプロイできていたのですが、
ある時、資源を過去のものに変えたかったので
git reset --hard コミットID
でソースをもとに戻し、修正し終わった後、
上記の3コマンドでデプロイを試みようとしたときに上記エラーが出て困っております。
既に同じような質問が出まわっておりますが、
色々試してみても上手く解決できなかったので詳しい方がいましたら
教えていただきたいと思います。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。