What are untracked files in a Git repository?

git, github, repository

Solution

Files in a repo folder that have not been added to the index.

So for instance, if I do:

git diff HEAD^ > some-new-file.diff

Then `some-new-file.diff` is probably untracked, since I've never done a `git add` on it before.

Problem

What exactly are untracked files in a repository?

Original source