I have gotten myself into a bizarre situation where in one of my branches a web.config file cannot be added to the stage. The output of
git add path/to/web.confi
The final solution to this particular problem was to remove both web.config entries from the git cache, commit any changes, and re-add the desired Web.config file back to git.
git rm --cached path/to/Web.config
git rm --cached path/to/web.config
git commit -m "Repair confused cache"
git add path/to/Web.config
git commit -m "Add Web.config"