# Which file in a Git repository tells source-controller to leave files out of the artifact it builds?

Flux CD, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-file-in-a-git-repository-tells-source-controller-to-leave-files-out-of-the-artifact-it-builds

- A. .fluxignore
- B. .sourceignore
- C. .helmignore
- D. .dockerignore

**Answer:** .sourceignore

**Explanation:** A .sourceignore file uses .gitignore syntax, and the GitRepository's spec.ignore field does the same from the cluster side. Leaving out CI workflows and docs matters when a Kustomization would otherwise try to apply every YAML file under its path.
