A while ago I did this to ignore changes to a file tracked by git:
git update-index --skip-worktree
Now I actually want to com
This answer is aimed at less technical people using Windows.
If you don't remember/know which files you clicked "skip-worktree" on then use:
git ls-files -v //This will list all files, you are looking for the ones with an S at the beginning of the line.
git ls-files -v | grep "S " //Use this to show only the lines of interest. Those are the files that have "skip-worktree".
To fix your problem:
You can go to the files -> right click -> restore to a previous version -> click the "git" tab on top -> uncheck the "skip-worktree" checkbox -> click "Apply" at the bottom.
If the files are too many to fix by hand then you'll need to refer to the other answers.