Compare a single file between git branches

June 3, 2016

Comparing a file between two git branches is quite easy. You can do it with both diff and difftool.

Straight diff

git diff BRANCH_ONE BRANCH_TWO -- FILE

Using difftool

git difftool BRANCH_ONE BRANCH_TWO -- FILE
Leave a Reply

Your email address will not be published. Required fields are marked *