出力からgit status
:
# On branch master
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: public/index.html
# no changes added to commit (use "git add" and/or "git commit -a")
したがって、実際に作業ツリーから public/index.html を削除しましたが、git のファイルは削除していません。
これを行うには、git add -A
削除のためにファイルをgit commit -m "Removing file"
ステージングしてから、変更をコミットするために Heroku に再プッシュする前に a を実行します。
git commit -am "Removing file"
または、削除されたファイルをステージングし、更新されたファイルをステージングしてから、一度にコミットすることを1 行で行う、より短い方法です。