Oh shit, git: Getting myself out of bad situations
So I <i>just</i> ran across this one:
git diff --staged<p>I added a file and wanted to diff it, and this command helped!  However, I made some changes in the file, and when I tried this command a second time, the changes don&#x27;t show up :\  Only the original file that was added shows up in the diff.  Now what?  It&#x27;s not the end of the world of course, as I can just look at the file in my editor, but I usually use diffs as a personal code-review before I commit.