I know we have lot of discussions on this out here but those aren't solving my issue. So placing my question here.
I want to untrack some files from being shown as modified while doing git status, and I tried different options as explained here
ex. I want to untrack test.txt file and I tried like these:
git update-index --skip-worktree test.txt
Immediately, when I do git status, still it is showing as modified. Is there something wrong here? Also, I tried adding this to .git/info/exclude file but no luck. Can anyone please throw some ideas here?