Last Updated: February 25, 2016
·
1.04K
· 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.

And

git diff -- path/to/diff

diffs only a specific path.

This can be combined in any way you want