The git diff command is used to show the differences between different states of a Git repository.
It provides a detailed view of changes made to files, including additions, modifications, and deletions.
$ git diff
Check the difference between two commit
$git diff commit1 commit2
You can specify a file or multiple files to see the differences only for those files
$git diff file1 file2
You can do the compare between two branches.
$git diff branch1..branch2