- Comparison of git diff workspace and staging area
- git diff HEAD work area compared with the current working branch
- git diff --cached compare the staging area with the repository
- git diff <commit1> <commit2> <paths> can also compare the differences of files under this path between different versions