3days since the last Git and AI fuck-up

How to run a diff on unstaged changes in git?

Mandeep Singhfrom the archive

shell
git diff --staged

Git won't do a diff of files that have been added 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!)

Originally Posted On: OhShitGit

Tagged solving-mistories, git-diff, git-checkout, git-stash