tracked file

A file Git already knows about because it is in the last commit or the staging area; any other file is untracked.

In more detail

Git reports changes to tracked files and lists untracked ones separately. Ignore rules apply only to untracked files, so adding an already tracked file to .gitignore does nothing; you have to untrack it with git rm --cached and commit that.

Example

git status --short --untracked-files=all

Related terms

Taught in

References