I had to edit gitignore as it excluded a file that was needed. I just put a # char in front to comment out the line
When I try to add the file back in I get the error message that it is excluded and that line is printed but without the # sign.
I assume I had to clear the cache so I did git rm -r --cached . followed by an add and a commit but the fle was still not added. Git does not know its file was edited even if I exit git (windows git bash) and restart git bash. I did go and google this problem but all that showed up was how to make git aware that stuff was ADDED.
It asks me to do a -f to force the add. How do I tell it to go and look at the .gitignore file and remember what is in there now and not what was in there a zillion years ago.