Описание тега git-diff
Shows changes between the working tree and the committed contents of a git repository, or between two commits or branches of the repository.
git-diff(1) shows changes between the working tree and the committed contents of a git repository, or between two commits or branches of the repository.
It has a number of options to control which versions to diff and also how the produced diff output is formatted, see the man-page for details.