git diff
Shows staged changesgit diff --staged
The same as the above commandgit diff --cached
Shows the difference between the working directory and index (both staged and unstaged files)git diff HEAD
Shows the difference between the commitsgit diff a80982d 17d3352
Shows the difference between login.frm
files from different commitsgit diff a809822 17d3352 login.frm