I am using VS code with git. There are a lot of files(4G+) in the repos and I don't care about most of them. But they are needed during compile. So when I create the VS code workspace, I only added the folder/files I am interested. Then I found the source control in VS code listed 5K files and complained they are modified but actually not. I think the reason is these files are tracked by git but I didn't add them to my workspace. Is there a way to ignore such files?
.gitignore doesn't work for this because all the files are not local, they are all tracked by git. I don't want to add them all to the VS code workspace since I only care about part of them.
Thanks in advance!