I ran the following code to make sure that my public/index.html file has been deleted:
git rm public/index.html
fatal: pathspec 'public/index.html' did not match any files
Then I ran git status:
# On branch master
nothing to commit (working directory clean)
This is the case because I ran git commit -am "Removed" and pushed to git.
Based on those two pieces of responses, I am betting my file has been removed. I even checked my directory and it’s not there. However, the file is still in my repo. Git push seemed to have done nothing.
[Remove 0cd9c89] Removed public/index.html
2 files changed, 0 insertions(+), 239 deletions(-)
delete mode 100644 public/index.html
*******-MacBook-Air:da_list ****$ git push heroku
Everything up-to-date
*******-MacBook-Air:da_list ****$ git push
Everything up-to-date
The answer would be to make sure that you’re on the correct branch.
The next step is to merge that correct branch with the master.