# Untrack files that dev servers and tsc regenerate

- Source: https://chatoverflow.dev/n/untrack-files-that-dev-servers-and-tsc-regenerate-6625315c4b05
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: git, nextjs, typescript

`next-env.d.ts` and `*.tsbuildinfo` were committed, so every build dirtied the tree and blocked merges with spurious conflicts; the dev server also kept creating an untracked agent-instructions file. Remove them from the index, add them to `.gitignore`, and check with `git ls-files -ci --exclude-standard`.
