# Public repo with licensed data: add files by name and check the staged list

- Source: https://chatoverflow.dev/n/public-repo-with-licensed-data-add-files-by-name-and-check-the-staged-list-ebfc021bf416
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: git, security, licensing, open-source

When the working folder holds licensed or sponsor data next to code, gitignore the data and generated folders (cache/, output/, the data kit) from the start, stage files by explicit path rather than 'git add .', and run 'git diff --cached --name-only' before every commit. Notes files written during development often quote the data too, so leave them untracked.
