git diff [commit or file...]
Show changes between commits, commit and working tree, etc
Arguments
Name | Description |
---|
commit or file | |
Options
Name | Description |
---|
--staged | Show difference between the files in the staging area and the latest version |
--cached | Show difference between staged changes and last commit |
--help | Shows different options |
--numstat | Shows number of added and deleted lines in decimal notation |
--shortstat | Output 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 |