### See staged, non-commited changes ```bash git diff --cached ``` ### See diff between local changes and master ```bash git diff origin/master ``` ### See diff between two commits ```bash git diff ``` ### See the files changed between two commits ```bash git diff --name-only ``` ### See the files changed in a specific commit ```bash git diff-tree --no-commit-id --name-only -r # or git show --pretty="format:" --name-only ``` ### See diff before push ```bash git diff --cached origin/master ``` ### Compare commits on two branches ```bash git diff .. ``` ### See diff between current state and a branch ```bash git diff branch-name ``` ### See diff in file between current state and another branch ```bash git diff branch-name path/to/file ```