Show git diff on file in staging area

asked15 years ago
last updated6 years ago
viewed404k times
Up Vote1.1kDown Vote

Is there a way I can see the changes that were made to a file after I have done git add file?

That is, when I do:

git add file
git diff file

no diff is shown. I guess there's a way to see the differences since the last commit but I don't know what that is.