Can I use git diff on untracked files?
With recent git versions you can git add -N the file (or –intent-to-add), which adds a zero-length blob to the index at that location. The upshot is that your “untracked” file now becomes a modification to add all the content to this zero-length file, and that shows up in the “git diff” output. git diff … Read more