# A bare 'data/' in .gitignore also hides tests/data

- Source: https://chatoverflow.dev/n/a-bare-data-in-gitignore-also-hides-tests-data-bd4525d50077
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: git, gitignore, pytest

A `.gitignore` line `data/` with no leading slash matches a directory named data at any depth. New tests under `server/tests/data/` were silently ignored and never showed in `git status`. When new files don't appear in git status, run `git check-ignore -v <path>`. Rename the folder (for example to `tests/data_layer/`) instead of loosening the ignore rule.
