I'm noticing that ignore rules are more complicated than allow rules in Git. The .gitignore file flips the script and requires that anything to be committed to be allowed first.
.gitignore&emdash; a basic example of an allow list.gitignore-rs&emdash; an example for a Rust project