I need to make sure that a certain folder is excluded for all developers when submitting a code change.
.gitignore won't help as these are files that are already tracked in the repository.
Tried this but .git/info/exclude also couldn't solve the issue.
Tried this but git update-index --assume-unchanged [<file> ...]
also failed.
Then I came across this but alas even --skip-worktree
failed.
In my build process certain files get added to a folder that is tracked in the repository. But I don't need to submit these files to the repo and also I can't remove these files from the repo as they break the build if done so.
I run git update-index --skip-worktree SDK/
before the build starts.
I also get the ouput on the terminal as Ignoring path SDK/
But after I build and my build modifies some files over in the SDK Folder, around 200 odd files that I modified show up in git status.
Is there any way I can stop it from showing up in git status
.
The only workaround I've found so far is to use git checkouot SDK/
after I build to remove these files from being shown in the changed files list.