Why hasn't my public/index.html file been removed on GitHub yet even after I've added, committed, and pushed?
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.
[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
Ever开发者_JAVA技巧ything 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.
精彩评论