On creating git diffs Show more
#TIL I always thought it wasn't possible to show new files in git diffs, since `git diff` only shows changes on existing files. But you can add your changes to the staging area and use `git diff --cached > diff.patch`! That way you can later restore it with `git apply diff.patch`. It's basically like stashing, but having a file you can share with others :D.