开发者

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.

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
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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜