I'm keep getting Changes to be committed
message from git status
command even after committed and pushed to origin. I can see the changes on origin/master. How can I get rid of this message?
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: foo.php
$ git commit -m 'message' foo.php
On branch master
Your branch is up to date with 'origin/master'.
nothing added to commit
EDIT
Actually, foo.php was a different name say foo-org.php before and I renamed it with:
git mv foo-org.php foo.php
I run git add foo.php then git commit -m 'renamed' foo.php then git push orign master. I can see the file on online repo (origin/master) is up to date, so I have no idea why it is still saying "Changes to be committed".