Is it possible to ask git diff to include untracked files in its diff output, or is my best bet to use git add on the newly created files and the e
git diff
git add
this works for me:
git add my_file.txt git diff --cached my_file.txt git reset my_file.txt
Last step is optional, it will leave the file in the previous state (untracked)
useful if you are creating a patch too:
git diff --cached my_file.txt > my_file-patch.patch