How to run a diff on unstagged changes in git?


$ git diff --staged

Git won’t do a diff of files that have been add-ed to your staging area without this flag. File under ¯(ツ)/¯ (yes, this is a feature, not a bug, but it’s baffling and non-obvious the first time it happens to you!)

Leave a Reply