Search code examples
gitgithubrepository

What are untracked files in a Git repository?


What exactly are untracked files in a 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.