Setup p4ignore
Using env variable
You can use P4IGNORE env variable on your system manually or using AD or you can use the p4 set command.
sh
p4 set P4IGNORE=.p4ignoreUsing stream depot
You can also set ignored file, in the stream advenced settings tab. You can use this to fix new pushed ignored files.