I have a strange problem with an untracking file. I have a tracked index.css file. Then add it to .gitignore . Then I run the following and get the output:
$ git rm --cached build/development/css/index.css rm 'build/development/css/index.css'
Running git status gives the following:
$ 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) deleted: build/development/css/index.css
When you try to commit changes, I get the following error:
Error:On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean during executing git commit
If I try to commit changes to index.css along with external changes, the commit will go without errors. But changes to the file are still detected. What am I doing wrong?
source share