Displays the difference between two branches.
git diff <branch>..<other-branch>
to view the difference between <branch>
and <other-branch>
.git diff <branch>..<other-branch>
git diff patch-1..patch-2
# Displays the difference between branches `patch-1` and `patch-2`
Git, Commit
Displays differences between staged or unstaged changes and the last commit.
Git, Repository
Prints a summary of changes between two given commits.
Git, Branch
Prints the current status of the working tree.