git diff [commit or file...]

Show changes between commits, commit and working tree, etc

Arguments

NameDescription
commit or file

Options

NameDescription
--stagedShow difference between the files in the staging area and the latest version
--cachedShow difference between staged changes and last commit
--helpShows different options
--numstatShows number of added and deleted lines in decimal notation
--shortstatOutput only the last line of the --stat format containing total number of modified files
--stat [[=< width >[,< name-width >[,< count >]]]]Generate a diffstat
-- <[< path >...]...>Separates paths from options for disambiguation purposes