How to See What Changed in a Git Repository Before You Commit (git status and git diff)
Before every commit, it pays to look at what you're about to save: which files changed, which lines, and which of those changes are actually going into the commit. Two Git commands answer all of that. This guide makes a small change in a .NET C# project and walks through git status and git diff with their real output, including the one surprise that confuses almost everyone: git diff showing nothing after git add.
