The "ignore-glob" setting:

The value is a comma or newline-separated list of GLOB
patterns specifying files that the "add", "addremove",
"clean", and "extras" commands will ignore.

Example:  *.log customCode.c notes.txt