I somehow have a file that I didn't commit (at least recently), I can't seem to remove it using:
git rm -r --cached PathToFile
When I check what will be pushed when I push the file I removed is still listed using:
git diff --stat --cached origin/master
Does anybody know what's wrong?
The issue is I can't commit the file because it's over 100MB, it's currently on my .gitingore, but I guess the change to gitignore was made after the file was commited somehow. I don't want LFS, I already maxed it for no reason.