Can't get rid of "Changes not staged for commit'
git commit -a -m "message"
The -a option will add all tracked files with modifications
A round about way that worked for me, is to:
recreate the file that I deleted.
git add path/filename
git rm --cached path/filename
delete the file
git add .
git commit --amend # if not on an already pushed branch.
Be sure that you are in the same directory as the file when you run any git
commands. Alternatively, you can use a relative or absolute path for files used with git
commands. The output from git status
should indicate the subdirectory where the file is located. I find it strange that the output you posted here doesn't show that.