Last Updated: February 25, 2016
· keyboardsurfer

git diff branches & paths

A simple

git diff {otherBranch | commitHash}

diffs the current state against another branch or a commit.

git diff base other

diffs the base branch / commit with the other.


git diff -- path/to/diff

diffs only a specific path.

This can be combined in any way you want